diff options
author | davidovski <david@davidovski.xyz> | 2022-05-31 11:05:19 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-31 11:05:19 +0100 |
commit | 48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch) | |
tree | 00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/font-noto/fontconfig.xml.erb | |
parent | 871b2b573f01c1b3176a0f65458b3d281b41c437 (diff) |
removed idea of repos
Diffstat (limited to 'repo/font-noto/fontconfig.xml.erb')
-rw-r--r-- | repo/font-noto/fontconfig.xml.erb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/repo/font-noto/fontconfig.xml.erb b/repo/font-noto/fontconfig.xml.erb new file mode 100644 index 0000000..8459ab0 --- /dev/null +++ b/repo/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> |