Browse Source

first commit

Xi Ruoyao 4 years ago
commit
135cd3eced
2 changed files with 101 additions and 0 deletions
  1. 3 0
      README.md
  2. 98 0
      fonts/local.conf

+ 3 - 0
README.md

@@ -0,0 +1,3 @@
+# etc
+
+Xry111's configuration files.

+ 98 - 0
fonts/local.conf

@@ -0,0 +1,98 @@
+<?xml version="1.0"?>
+
+<!-- Based on Arch Wiki:
+     https://wiki.archlinux.org/index.php/Font_configuration/Examples#Chinese
+-->
+
+<fontconfig>
+	<!-- Pixel alignment -->
+	<match target="font">
+		<edit name="rgba" mode="assign">
+			<const>rgb</const>
+		</edit>
+	</match>
+
+	<!-- Never use embedded bitmap glyph -->
+	<match target="font">
+		<edit name="embeddedbitmap" mode="assign">
+			<bool>false</bool>
+		</edit>
+	</match>
+
+	<!-- serif -->
+	<match>
+		<test qual="any" name="family">
+			<string>serif</string>
+		</test>
+		<edit name="family" mode="prepend" binding="strong">
+			<string>Noto Serif</string>
+		</edit>
+	</match>
+	<match>
+		<test name="lang" compare="contains">
+			<string>zh</string>
+		</test>
+		<test name="family">
+			<string>serif</string>
+		</test>
+		<edit name="family" mode="prepend">
+			<string>Noto Serif CJK SC</string>
+		</edit>
+	</match>
+
+	<!-- serif -->
+	<match>
+		<test qual="any" name="family">
+			<string>sans-serif</string>
+		</test>
+		<edit name="family" mode="prepend" binding="strong">
+			<string>Noto Sans</string>
+		</edit>
+	</match>
+	<match>
+		<test name="lang" compare="contains">
+			<string>zh</string>
+		</test>
+		<test name="family">
+			<string>sans-serif</string>
+		</test>
+		<edit name="family" mode="prepend">
+			<string>Noto Sans CJK SC</string>
+		</edit>
+	</match>
+
+	<!-- mono -->
+	<match>
+		<test name="family">
+			<string>monospace</string>
+		</test>
+		<edit name="family" mode="prepend">
+			<string>Noto Sans Symbols</string>
+		</edit>
+		<edit name="family" mode="prepend">
+			<string>Noto Sans Symbols2</string>
+		</edit>
+		<edit name="family" mode="prepend">
+			<string>Source Code Pro</string>
+		</edit>
+	</match>
+	<match>
+		<test qual="any" name="family">
+			<string>monospace</string>
+		</test>
+		<edit name="family" mode="prepend" binding="strong">
+			<string>Noto Sans Mono</string>
+		</edit>
+	</match>
+	<match>
+		<test name="lang" compare="contains">
+			<string>zh</string>
+		</test>
+		<test name="family">
+			<string>monospace</string>
+		</test>
+		<edit name="family" mode="prepend">
+			<string>Noto Sans Mono CJK SC</string>
+		</edit>
+	</match>
+</fontconfig>