diff options
author | Masamichi Hosoda <trueroad@sea.plala.or.jp> | 2015-04-18 15:10:06 +0100 |
---|---|---|
committer | James Lowe <pkx166h@gmail.com> | 2015-04-18 15:15:18 +0100 |
commit | af1b0da3853670ee559e148cea70535d5f6ac716 (patch) | |
tree | 40fd515993ae3b39cf988b9fc73ec532e98a74dd /scripts | |
parent | 9d84914cf1ffd71cca938952968e1be3d36944bf (diff) |
Add sans-serif and monospace fonts
Issue 4332
Add sans-serif and monospace fonts
Nimbus Sans L (Helvetica substitute) as sans-serif font.
Nimbus Mono L (Courier substitute) as monospace font.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/auxiliar/pfx2ttf-mono.fontforge | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/scripts/auxiliar/pfx2ttf-mono.fontforge b/scripts/auxiliar/pfx2ttf-mono.fontforge new file mode 100644 index 0000000000..7b804949ba --- /dev/null +++ b/scripts/auxiliar/pfx2ttf-mono.fontforge @@ -0,0 +1,36 @@ +Open($1); +MergeKern($2) + + +# The AFM files of `New Century Schoolbook' family as distributed within the +# urw-fonts-1.0.7pre41.tar.bz2 archive contain a bunch of ligatures which +# shouldn't be active by default: +# +# T + M -> trademark +# N + o -> afii61352 +# i + j -> ij +# I + J -> IJ +# +# This font bundle is shipped by Fedora Core 6 and other GNU/Linux +# distributions; we simply remove those ligatures. + +# Monospace font shouldn't have these ligature. +# +# f + i -> fi +# f + l -> fl + +SelectIf("trademark", "trademark", \ + "afii61352", "afii61352", \ + "ij", "ij", \ + "IJ", "IJ", \ + "fi", "fi", \ + "fl", "fl"); +if (Strtol($version) < 20070501) + RemoveATT("Ligature", "*", "*"); +else + RemovePosSub("*"); +endif + +Generate($3 + $fontname + ".otf"); + +# EOF |