diff options
Diffstat (limited to 'repo/font/font-noto/fontconfig.xml.erb')
-rw-r--r-- | repo/font/font-noto/fontconfig.xml.erb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/repo/font/font-noto/fontconfig.xml.erb b/repo/font/font-noto/fontconfig.xml.erb new file mode 100644 index 0000000..8459ab0 --- /dev/null +++ b/repo/font/font-noto/fontconfig.xml.erb @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> + <% data['fonts'].each do |font| %> + <!-- Noto <%= font['family'] %> --> + <match> + <%- if data['lang'] -%> + <test name="lang" compare="contains"> + <%- (font['lang'] || data['lang']).each do |code| -%> + <string><%= code %></string> + <%- end -%> + </test> + <%- end -%> + <test name="family"> + <string><%= font['alias'] %></string> + </test> + <edit name="family" mode="prepend"> + <string>Noto <%= font['family'] %></string> + </edit> + <edit name="fonthashint" mode="append"> + <bool>true</bool> + </edit> + </match> + <alias> + <family>Noto <%= font['family'] %></family> + <default> + <family><%= font['alias'] %></family> + </default> + </alias> + <% end %> +</fontconfig> |