[Pkg-fonts-devel] Bug#733077: fonts-roboto: new upstream release of Roboto (1.2)
BubuXP
bubuxp at gmail.com
Sun Jan 5 14:09:16 UTC 2014
BTW with this new version now I got Thin that looks like Light, and
Regular looks like Black.
fc-query on those fonts to found the cause:
style: "Thin"
fullname: "Roboto Thin"
weight: 50
style: "Light"
fullname: "Roboto Light"
weight: 50
style: "Regular"
fullname: "Roboto Regular"
weight: 80
style: "Black"
fullname: "Roboto Black"
weight: 80
Different styles but equal weights.
I fixed the weights according to fontconfig standards with
80-roboto.conf and it works.
Here's the file:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Fix Roboto v1.2 weights -->
<match target="scan">
<test name="fullname" compare="eq">
<string>Roboto Thin</string>
</test>
<edit name="weight" mode="assign">
<int>0</int>
</edit>
</match>
<match target="scan">
<test name="fullname" compare="eq">
<string>Roboto Thin Italic</string>
</test>
<edit name="weight" mode="assign">
<int>0</int>
</edit>
</match>
<match target="scan">
<test name="fullname" compare="eq">
<string>Roboto Black</string>
</test>
<edit name="weight" mode="assign">
<int>210</int>
</edit>
</match>
<match target="scan">
<test name="fullname" compare="eq">
<string>Roboto Black Italic</string>
</test>
<edit name="weight" mode="assign">
<int>210</int>
</edit>
</match>
</fontconfig>
2014/1/5 BubuXP <bubuxp at gmail.com>:
> Fabian Greffrath wrote:
>> Do you know if these fonts are part of Android 4.4.2? If yes, they could
>> get upgraded to that version by merely upgrading the src:fonts-android
>> package.
>
> I checked here:
> https://android.googlesource.com/platform/frameworks/base/+/android-4.4.2_r1/data/fonts/
> and it is the same version of the .zip download (1.2), except that
> here Medium and Black variants aren't present.
More information about the Pkg-fonts-devel
mailing list