Code Monkey home page Code Monkey logo

fedora-better-fonts's Introduction

Better fonts for Fedora

fontconfig-font-replacements provides free substitutions for popular proprietary fonts from Microsoft and Apple operating systems.

It makes your web browsing more aesthetically pleasing - you won't be seeing DejaVu Sans font on every damn webpage.

Subpixel (rgb) antialiasing

Default for Fedora are slight hinting and grayscale antialiasing.
Some people find subpixel antialiasing to look better - others can't stand color fringing caused by it. If you want to try it for yourself install fontconfig-enhanced-defaults package. You can also enable it manually in Gnome Tweaks or by running following command in terminal:

dconf write /org/gnome/settings-daemon/plugins/xsettings/antialiasing "'rgba'"

to change back to grayscale (default) antialiasing:

dconf write /org/gnome/settings-daemon/plugins/xsettings/antialiasing "'grayscale'"

COPR repository: https://copr.fedorainfracloud.org/coprs/dawid/better_fonts/

Installation instructons

  1. Enable COPR repository:
    sudo dnf copr enable dawid/better_fonts -y
  2. Install packages:
    sudo dnf install fontconfig-font-replacements -y
  3. (Optional) Enable subpixel (rgb) antialiasing:
    sudo dnf install fontconfig-enhanced-defaults -y
  4. Log out and log in again or restart computer to see the effect

Screenshots

(probably outdated)

Before After
Default fonts before Default fonts after
Facebook before Facebook after
Flask before Flask after
LWN.net before LWN.net after
NY Times before NY Times after
Reddit before Reddit after
Wikipedia before Wikipedia after

Building locally

Check build_instructions

fedora-better-fonts's People

Contributors

oxapentane avatar paul avatar silenc3r avatar upanasiuk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fedora-better-fonts's Issues

Change "system-ui" to something other than Cantarell

Recently some websites started to use "system-ui" font-family which defaults to Cantarell on Fedora 33, and it looks too lean. After that website change, the fonts became less readable.

As I'm using KDE, there doesn't seem any way to adjust "system-ui" font for Firefox — it seem to support this function only with Gnome desktop. I had to change fontconfig configuration manually.

My proposal is to change "system-ui" to Arimo, for example.

<alias>
     <family>system-ui</family>
     <prefer>
         <family>Arimo</family>
     </prefer>
</alias>

Reverting changes?

Hi!

Is there a way to revert the changes made? I tried uninstalling everything, but it doesn't seem to have changed back to the way it was by default.

Thanks!

CentOS 8 build

Hello,

I love this on Fedora, but I also run CentOS 8 on a box. Would love to have this available there - any chance you could make this available for CentOS as well? I'd greatly appreciate it. This is fantastic work.

Color fringing with low contrast text

I can try to explain it, but I think a screenshot is better (note the light gray text at full resolution):

ugly-antialiasing

This does not happen in Ubuntu 17.10. I'm aware that this is probably not due to your settings, but maybe you know what's going on here. I don't see where Ubuntu's and your settings differ. Probably something related to the lcd filter. It might be worthwhile to copy Ubuntu's settings, if possible. I checked and it's definitely not related to the different fonts in Ubuntu. The Ubuntu fonts turn out even worse than Cantarell on Fedora:

ugly-antialiasing2

This is Ubuntu's antialiasing:

nice-antialiasing

No packages found on F29

It seems like the F29 packages cannot be found:

$ # follow the install instructions from README.md
$ sudo dnf update --refresh
Copr repo for better_fonts owned by dawid            1.9 kB/s | 3.4 kB     00:01    
[...]
$ sudo dnf install fontconfig-enhanced-defaults fontconfig-font-replacements
Last metadata expiration check: 0:00:11 ago on Sun 14 Oct 2018 03:20:31 PM CEST.
No match for argument: fontconfig-enhanced-defaults
No match for argument: fontconfig-font-replacements
Error: Unable to find a match
$ sudo dnf repo-pkgs dawid-better_fonts list
Last metadata expiration check: 0:01:56 ago on Sun 14 Oct 2018 03:20:31 PM CEST.
$ 

Could you please check the repo configuration again?

Upstream changing, making this part of Fedora?

I'm likely not the first person to ask this, but would it be possible to upstream these changes so that it becomes the default for all Fedora installations?

As far as I understand, this is all FOSS-compliant and thousands are actively using it.

Question: Recommended way to modify replacements?

Hi. I am aware I can edit my /etc/fonts/conf.d/37-repl-global-free.conf and comment the parts I don't want out but maybe there is a better way?

My local fontconfig configuration in ~/.config/fontconfig/fonts.conf is:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<fontconfig>
  <match>
    <test name="family">
      <string>sans-serif</string>
    </test>
    <edit binding="strong" mode="prepend" name="family">
      <string>Calibri</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>serif</string>
    </test>
    <edit binding="strong" mode="prepend" name="family">
      <string>Cambria</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>monospace</string>
    </test>
    <edit binding="strong" mode="prepend" name="family">
      <string>Consolas</string>
    </edit>
  </match>
</fontconfig>

fontconfig-enhanced-defaults without replacements viable?

Hello @silenc3r,

I've been using fontconfig-enhanced-defaults without fontconfig-font-replacements for the last two Fedora releases. Today I've removed it and did not immediatly noticed a difference. In Tweaks I've enabled Slight and Subpixel AA.

Does a Subpixel AA setting in Tweaks do exactly the same as fontconfig-enhanced-defaults without fontconfig-font-replacements installed?

Fedora 29 update dependency problem

During dnf upgrade a problem comes up, since fontconfig-enhanced-defaults has freetype-freeworld as a dependency, but new version of freetype in update repo obsoletes it. As far as I understand fontconfig-enhanced-defaults just needs to be rebuild against new version of freetype?

complete error message:

Problem 1: package fontconfig-enhanced-defaults-0.4-1.fc29.noarch requires freetype-freeworld, but none of the providers can be installed
  - package freetype-2.9.1-6.fc29.x86_64 obsoletes freetype-freeworld < 2.9.1-2 provided by freetype-freeworld-2.9.1-1.fc29.x86_64
  - package freetype-2.9.1-6.fc29.x86_64 obsoletes freetype-freeworld < 2.9.1-2 provided by freetype-freeworld-2.9.1-1.fc29.i686
  - cannot install the best update candidate for package freetype-2.9.1-3.fc29.x86_64
  - cannot install the best update candidate for package fontconfig-enhanced-defaults-0.4-1.fc29.noarch
 Problem 2: problem with installed package fontconfig-enhanced-defaults-0.4-1.fc29.noarch
  - package fontconfig-enhanced-defaults-0.4-1.fc29.noarch requires freetype-freeworld, but none of the providers can be installed
  - package freetype-2.9.1-6.fc29.x86_64 obsoletes freetype-freeworld < 2.9.1-2 provided by freetype-freeworld-2.9.1-1.fc29.x86_64
  - package freetype-2.9.1-6.fc29.x86_64 obsoletes freetype-freeworld < 2.9.1-2 provided by freetype-freeworld-2.9.1-1.fc29.i686
  - cannot install the best update candidate for package freetype-freeworld-2.9.1-1.fc29.x86_64

Missing archivo-black-fonts on Fedora 34

It seems that there's no installation candidate for archivo-black-fonts on F34, which causes installation to fail.

Problem: conflicting requests
  - nothing provides archivo-black-fonts needed by fontconfig-font-replacements-0.6-2.fc34.noarch

Fedora 30 update problem after upgrading liberation-fonts to 2.00.5-3.fc30.noarch

After upgrading liberation-fonts to 2.00.5-3.fc30.noarch, there's now a conflict with liberation-narrow-fonts:

$ sudo dnf upgrade                        
[sudo] password for iweiss: 
Last metadata expiration check: 0:25:49 ago on Wed 28 Aug 2019 06:11:45 BST.
Dependencies resolved.

 Problem: cannot install both liberation-fonts-1:2.00.5-1.fc30.noarch and liberation-fonts-1:2.00.5-3.fc30.noarch
  - cannot install the best update candidate for package liberation-narrow-fonts-1.07.6-1.fc30.noarch
  - cannot install the best update candidate for package liberation-fonts-1:2.00.5-3.fc30.noarch
===============================================================================================================================================================================================================================================================================================================================
 Package                                                                            Architecture                                                             Version                                                                            Repository                                                                Size
===============================================================================================================================================================================================================================================================================================================================
Skipping packages with conflicts:
(add '--best --allowerasing' to command line to force their upgrade):
 liberation-fonts                                                                   noarch                                                                   1:2.00.5-1.fc30                                                                    fedora                                                                   8.0 k

Transaction Summary
===============================================================================================================================================================================================================================================================================================================================
Skip  1 Package

Nothing to do.
Complete!
$ rpm -qa | ag liberation-fonts
liberation-fonts-common-2.00.5-3.fc30.noarch
liberation-fonts-2.00.5-3.fc30.noarch

Missing archivo-black-fonts on Fedora 35

$  sudo dnf install fontconfig-font-replacements -y
Last metadata expiration check: 0:10:23 ago on Mon 01 Nov 2021 03:29:05 PM IST.
Error: 
 Problem: conflicting requests
  - nothing provides archivo-black-fonts needed by fontconfig-font-replacements-0.6-2.fc35.noarch
(try to add '--skip-broken' to skip uninstallable packages)

Package conflict with texlive-cabin

The cabin font conflicts with texlive-cabin from the official Fedora repositories, which is included in texlive-collection-fontsextra.

Error: Transaction check error:
  file /usr/share/fonts/cabin from install of texlive-cabin-6:svn39875-36.fc27.5.noarch conflicts with file from package cabin-fonts-2.001-1.fc27.noarch

failing in f31

This is on f31 which is reaching EOL on 2020-11-24. I'm not sure if this is also failing on newer versions of Fedora.

Dependencies resolved.

 Problem: cannot install the best update candidate for package fontconfig-font-replacements-0.5-1.fc30.noarch
  - nothing provides catharsis-cormorant-garamond-fonts needed by fontconfig-font-replacements-0.6-1.fc31.noarch
  - nothing provides sorkintype-merriweather-fonts needed by fontconfig-font-replacements-0.6-1.fc31.noarch
  - nothing provides sorkintype-merriweather-sans-fonts needed by fontconfig-font-replacements-0.6-1.fc31.noarch
==============================================================================================================================
 Package                           Arch        Version           Repository                                              Size
==============================================================================================================================
Skipping packages with broken dependencies:
 fontconfig-font-replacements      noarch      0.6-1.fc31        copr:copr.fedorainfracloud.org:dawid:better_fonts       11 k

Transaction Summary
==============================================================================================================================
Skip  1 Package

Nothing to do.
Complete!

Would you please add support for the branched FC27?

FC27 is branched and can be enabled in copr, would you please support this (beta-)release?

It looks like there is a setting that automatically creates repos for new branches: Settings / Other Options / Follow Fedora branching.

Thank you very much.

Build for Fedora 28

Fedora 28 beta will be here soon, I'd be great to have the copr updated in time.

Build instructions?

I'd love to help contribute, and was working on getting COPR builds going for Fedora 29, but have been running into some issues. I know next to nothing about building RPMs.

I forked the repo and made a couple fixes (it seems COPR won't download from http URLs, https-only now). Now I'm running into an issue with the scripts that download from google fonts:

https://copr-be.cloud.fedoraproject.org/results/psadauskas/fedora-better-fonts/srpm-builds/00814339/builder-live.log

Running: rpkg srpm --outdir /var/lib/copr-rpmbuild/results9w8gubyf --spec /tmp/tmpz2_zmxtk/fedora-better-fonts/fjalla-one-fonts

cmd: ['rpkg', 'srpm', '--outdir', '/var/lib/copr-rpmbuild/results9w8gubyf', '--spec', '/tmp/tmpz2_zmxtk/fedora-better-fonts/fjalla-one-fonts']
cwd: /tmp/tmpz2_zmxtk/fedora-better-fonts/fjalla-one-fonts
rc: 0
stdout: Wrote: /var/lib/copr-rpmbuild/results9w8gubyf/fjalla-one-fonts.spec
stderr: error: Bad source: /var/lib/copr-rpmbuild/results9w8gubyf/fjalla-one-fonts-1.001.tar.xz: No such file or directory

I've also tinkered a bit with running the rpkg script locally, but get similar errors. If I run the script manually, it downloads the font to a tmp dir and makes a .tar.xz, but I'm not sure how to get rpkg to find it.

It looks like in the past rather than relying on COPR you've just built them locally then uploaded them. Do you have build instructions or any tips on how you did that?

Thanks!

antialiasing attribute in xsettings not found on F34

The dconf path /org/gnome/settings-daemon/plugins/xsettings/antialiasing in the README is no longer available (tested on Fedora 34). The attribute is not set / never read. Does this possibly mean the package also needs adaption?

Breaks colored emoji in Gnome 3.26?

Just updated to Fedora 27 and hit a weird issue: installing a colored emoji font (tried both Noto and EmojiOne) would result in Characters displaying blank emojis.

After some back and forth, sudo dnf remove fontconfig-enhanced-defaults fontconfig-font-replacements fixed it.

Fedora 35 beta + Python error

sudo dnf copr enable dawid/better_fonts -y
/usr/lib/python3.10/site-packages/dnf-plugins/copr.py:433: DeprecationWarning: distro.linux_distribution() is deprecated. It should only be used as a compatibility shim with Python's platform.linux_distribution(). Please use distro.id(), distro.version() and distro.name() instead.
dist = linux_distribution()

The `ubuntu-fonts` package license is not allowed on Fedora COPR

Hello there,

Your repository on Fedora COPR, dawid/better_fonts includes a package named ubuntu-fonts, which is licensed under the Ubuntu font licence, a known bad font license on Fedora.

Fedora COPR requires all packages built on it to comply with the terms listed in the FAQ, which says that one must not build packages for software that "is governed in whole or in part by a license not contained in the list of acceptable licenses for Fedora, currently located at https://fedoraproject.org/wiki/Licensing, as that list may be revised from time to time by the Fedora Council" (see part "What I can build in Copr?" of the FAQ)

You may want to drop the offending package off of the Fedora COPR repository to resolve the issue.

```
rmnscnce

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.