diff options
Diffstat (limited to 'system/ttf-ubuntu-font-family/81-ubuntu.conf')
-rw-r--r-- | system/ttf-ubuntu-font-family/81-ubuntu.conf | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/system/ttf-ubuntu-font-family/81-ubuntu.conf b/system/ttf-ubuntu-font-family/81-ubuntu.conf new file mode 100644 index 0000000000..751bb11208 --- /dev/null +++ b/system/ttf-ubuntu-font-family/81-ubuntu.conf @@ -0,0 +1,66 @@ +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> + +<!-- Fixes for Ubuntu family: + - Medium variant is used instead of Regular on Qt apps: + https://bugs.launchpad.net/ubuntu-font-family/+bug/744812 + - Medium and Bold looks the same in certain applications: + https://bugs.launchpad.net/ubuntu/+source/gnome-specimen/+bug/813373 +--> + +<match target="scan"> + <test name="fullname" compare="eq"> + <string>Ubuntu Light</string> + </test> + <edit name="family" mode="assign"> + <string>Ubuntu</string> + </edit> + <edit name="style" mode="assign"> + <string>Light</string> + </edit> +</match> + +<match target="scan"> + <test name="fullname" compare="eq"> + <string>Ubuntu Light Italic</string> + </test> + <edit name="family" mode="assign"> + <string>Ubuntu</string> + </edit> + <edit name="style" mode="assign"> + <string>Light Italic</string> + </edit> +</match> + +<match target="scan"> + <test name="fullname" compare="eq"> + <string>Ubuntu Medium</string> + </test> + <edit name="family" mode="assign"> + <string>Ubuntu</string> + </edit> + <edit name="style" mode="assign"> + <string>Medium</string> + </edit> + <edit name="weight" mode="assign"> + <const>demibold</const> + </edit> +</match> + +<match target="scan"> + <test name="fullname" compare="eq"> + <string>Ubuntu Medium Italic</string> + </test> + <edit name="family" mode="assign"> + <string>Ubuntu</string> + </edit> + <edit name="style" mode="assign"> + <string>Medium Italic</string> + </edit> + <edit name="weight" mode="assign"> + <const>demibold</const> + </edit> +</match> + +</fontconfig> |