Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/13rac1/emojione-color-font.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Erickson <eosrei@gmail.com>2016-03-17 04:31:54 +0300
committerBrad Erickson <eosrei@gmail.com>2016-03-17 04:31:54 +0300
commit24b65391c1f02f8ff57b7b4f9c12f94550bac0ca (patch)
tree96227d4268ce2bf37b68c042bd77ff533334e3d6
parent23a2587594151ccba5301cdf8c495fc499fbdbc0 (diff)
fonts.conf: A conf making Bitstream Vera default
The DejaVu font family is based on the Bitstream Vera font family to provide greater unicode coverage. The only way to override the emoji it includes is to make the emoji font the primary system font. This shouldn't be a problem, but a number of programs do not correctly use font fallback resulting in font rendering errors everywhere: #1, #5, #16, #18, #19. This font.conf makes Bitstream Vera the default font for Serif, Sans-Serif, and Monospace font requests since it does not contain any Unicode Emoji characters. Emoji One Color font is the first fallback, followed by DejaVu to provide everything else. Test with: fc-match -s serif fc-match -s sans-serif fc-match -s monospace May be the solution for #17
-rw-r--r--fontconfig/user-bitstream-vera-fonts.conf135
1 files changed, 135 insertions, 0 deletions
diff --git a/fontconfig/user-bitstream-vera-fonts.conf b/fontconfig/user-bitstream-vera-fonts.conf
new file mode 100644
index 0000000..5b54330
--- /dev/null
+++ b/fontconfig/user-bitstream-vera-fonts.conf
@@ -0,0 +1,135 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+
+<fontconfig>
+ <!--
+ Emoji One Color SVGinOT Font
+ https://github.com/eosrei/emojione-color-font
+
+ The DejaVu font family is based on the Bitstream Vera font family to provide
+ greater unicode coverage. The only way to override the emoji it includes is
+ to make the emoji font the primary system font. This shouldn't be a problem,
+ but a number of programs do not correctly use font fallback resulting in font
+ rendering errors everywhere.
+
+ This font.conf makes Bitstream Vera the default font for Serif, Sans-Serif,
+ and Monospace font requests since it does not contain any Unicode Emoji
+ characters. Emoji One Color font is the first fallback, followed by DejaVu
+ to provide everything else.
+
+ Test with:
+ fc-match -s serif
+ fc-match -s sans-serif
+ fc-match -s monospace
+ -->
+
+ <match target="font">
+ <!-- If the requested font is Bitstream Vera Serif -->
+ <test name="family" compare="eq">
+ <string>Bitstream Vera Serif</string>
+ </test>
+ <!-- Replace the entire match list with Bitstream Vera Serif alone -->
+ <edit name="family" mode="assign_replace">
+ <string>Bitstream Vera Serif</string>
+ </edit>
+ <!-- Assign the serif family -->
+ <edit name="family" mode="append_last">
+ <string>serif</string>
+ </edit>
+ </match>
+
+ <match>
+ <!-- If the requested font is serif -->
+ <test qual="any" name="family">
+ <string>serif</string>
+ </test>
+ <!-- Make Bitstream Vera Serif the first result -->
+ <edit name="family" mode="prepend_first">
+ <string>Bitstream Vera Serif</string>
+ </edit>
+ <!-- Followed by Emoji One Color -->
+ <edit name="family" mode="prepend_first">
+ <string>Emoji One Color</string>
+ </edit>
+ </match>
+
+ <match target="font">
+ <!-- If the requested font is Bitstream Vera Sans -->
+ <test name="family" compare="eq">
+ <string>Bitstream Vera Sans</string>
+ </test>
+ <!-- Replace the entire match list with Bitstream Vera Sans alone -->
+ <edit name="family" mode="assign_replace">
+ <string>Bitstream Vera Sans</string>
+ </edit>
+ <!-- Assign the sans-serif family -->
+ <edit name="family" mode="append_last">
+ <string>sans-serif</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <!-- If the requested font is sans-serif -->
+ <test qual="any" name="family">
+ <string>sans-serif</string>
+ </test>
+ <!-- Make Bitstream Vera Sans the first result -->
+ <edit name="family" mode="prepend_first">
+ <string>Bitstream Vera Sans</string>
+ </edit>
+ <!-- Followed by Emoji One Color -->
+ <edit name="family" mode="prepend_first">
+ <string>Emoji One Color</string>
+ </edit>
+ </match>
+
+ <match target="font">
+ <!-- If the requested font is Bitstream Vera Sans Mono -->
+ <test name="family" compare="eq">
+ <string>Bitstream Vera Sans Mono</string>
+ </test>
+ <!-- Replace the entire match list with Bitstream Vera Sans Mono alone -->
+ <edit name="family" mode="assign_replace">
+ <string>Bitstream Vera Sans Mono</string>
+ </edit>
+ <!-- Assign the monospace family last -->
+ <edit name="family" mode="append_last">
+ <string>monospace</string>
+ </edit>
+ </match>
+
+ <match target="pattern">
+ <!-- If the requested font is monospace -->
+ <test qual="any" name="family">
+ <string>monospace</string>
+ </test>
+ <!--
+ Make Bitstream Vera Sans Mono the first result
+ Note: If you want a different monospace font, this is where you change it.
+ -->
+ <edit name="family" mode="prepend_first">
+ <string>Bitstream Vera Sans Mono</string>
+ </edit>
+ <!-- Followed by Emoji One Color -->
+ <edit name="family" mode="prepend_first">
+ <string>Emoji One Color</string>
+ </edit>
+ </match>
+
+ <!-- Alias requests for the other emoji fonts -->
+ <alias binding="strong">
+ <family>Apple Color Emoji</family>
+ <prefer><family>Emoji One Color</family></prefer>
+ <default><family>sans-serif</family></default>
+ </alias>
+ <alias binding="strong">
+ <family>Segoe UI Emoji</family>
+ <prefer><family>Emoji One Color</family></prefer>
+ <default><family>sans-serif</family></default>
+ </alias>
+ <alias binding="strong">
+ <family>Noto Color Emoji</family>
+ <prefer><family>Emoji One Color</family></prefer>
+ <default><family>sans-serif</family></default>
+ </alias>
+</fontconfig>