[google-roboto-fonts] Resolves: rhbz#1174935 fix font metadata

David Tardon dtardon at fedoraproject.org
Tue Dec 23 16:15:02 UTC 2014


commit 4da80d880e4cb548ba542797cfe2382a287d07ad
Author: David Tardon <dtardon at redhat.com>
Date:   Tue Dec 23 17:08:55 2014 +0100

    Resolves: rhbz#1174935 fix font metadata

 64-google-roboto-condensed-fontconfig.conf |    8 +++++++
 64-google-roboto-fontconfig.conf           |   32 ++++++++++++++++++++++++++++
 google-roboto-fonts.spec                   |    1 +
 3 files changed, 41 insertions(+), 0 deletions(-)
---
diff --git a/64-google-roboto-condensed-fontconfig.conf b/64-google-roboto-condensed-fontconfig.conf
index 178da36..375db0e 100644
--- a/64-google-roboto-condensed-fontconfig.conf
+++ b/64-google-roboto-condensed-fontconfig.conf
@@ -13,5 +13,13 @@
               <family>sans-serif</family>
             </default>
         </alias>
+	<match target="scan">
+		<test name="family">
+			<string>Roboto Condensed</string>
+		</test>
+		<edit name="width">
+			<const>condensed</const>
+		</edit>
+	</match>
 </fontconfig>
 
diff --git a/64-google-roboto-fontconfig.conf b/64-google-roboto-fontconfig.conf
index 41efdb9..18c73b3 100644
--- a/64-google-roboto-fontconfig.conf
+++ b/64-google-roboto-fontconfig.conf
@@ -13,5 +13,37 @@
               <family>sans-serif</family>
             </default>
         </alias>
+	<match target="scan">
+		<test name="style">
+			<string>Thin</string>
+		</test>
+		<edit name="weight">
+			<const>thin</const>
+		</edit>
+	</match>
+	<match target="scan">
+		<test name="style">
+			<string>Thin Italic</string>
+		</test>
+		<edit name="weight">
+			<const>thin</const>
+		</edit>
+	</match>
+	<match target="scan">
+		<test name="style">
+			<string>Black</string>
+		</test>
+		<edit name="weight">
+			<const>black</const>
+		</edit>
+	</match>
+	<match target="scan">
+		<test name="style">
+			<string>Black Italic</string>
+		</test>
+		<edit name="weight">
+			<const>black</const>
+		</edit>
+	</match>
 </fontconfig>
 
diff --git a/google-roboto-fonts.spec b/google-roboto-fonts.spec
index ca492b5..bd743ab 100644
--- a/google-roboto-fonts.spec
+++ b/google-roboto-fonts.spec
@@ -82,6 +82,7 @@ install -m 0644 -p %{SOURCE3} %{SOURCE4} %{buildroot}%{_datadir}/appdata
 %changelog
 * Tue Dec 23 2014 David Tardon <dtardon at redhat.com> - 1.2-8
 - revert the previous "update"
+- Resolves: rhbz#1174935 fix font metadata
 
 * Tue Dec 23 2014 David Tardon <dtardon at redhat.com> - 1.2-7
 - drop obsolete requires


More information about the fonts-bugs mailing list