[Fontconfig-bugs] [Bug 71287] size specific design selection support in OS/2 table version 5
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Nov 13 04:02:15 PST 2013
https://bugs.freedesktop.org/show_bug.cgi?id=71287
Akira TAGOH <akira at tagoh.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #1 from Akira TAGOH <akira at tagoh.org> ---
Okay, finally can introduce the initial code for this feature.
http://cgit.freedesktop.org/~tagoh/fontconfig/commit/?h=new-size-selection-mechanism
I did test this by having the following recipe so that I don't have fonts
containing those properties in OS/2 table.
<fontconfig>
<match target="scan">
<test name="file" compare="eq">
<string>/path/to/fixed.pcf</string>
</test>
<edit name="sizerange" mode="assign">
<range>
<double>10</double>
<double>12</double>
</range>
</edit>
</match>
</fontconfig>
% ./fc-match/fc-match -f "%{family}:file=%{file}\n" "Fixed:size=9"
Fixed:file=/usr/share/fonts/knm-new-fixed/kaname-latin1.pcf.gz
% ./fc-match/fc-match -f "%{family}:file=%{file}\n" "Fixed:size=10"
Fixed:file=/path/to/fixed.pcf
% ./fc-match/fc-match -f "%{family}:file=%{file}\n" "Fixed:size=11"
Fixed:file=/path/to/fixed.pcf
% ./fc-match/fc-match -f "%{family}:file=%{file}\n" "Fixed:size=12"
Fixed:file=/usr/share/fonts/knm-new-fixed/kaname-latin1.pcf.gz
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20131113/02ff92fa/attachment.html>
More information about the Fontconfig-bugs
mailing list