3
0
Fork 0
forked from mirrors/nixpkgs

Now Linux Libertine font works in TeX

svn path=/nixpkgs/trunk/; revision=11740
This commit is contained in:
Michael Raskin 2008-04-28 11:06:56 +00:00
parent c6cf72aaa9
commit 0875919fa1
2 changed files with 6 additions and 2 deletions

View file

@ -12,6 +12,9 @@ rec {
phaseNames = ["doUnpack" "generateFontsFromSFD" "installFonts"];
createTTF=false;
extraFontForgeCommands = ''
ScaleToEm(1000);
'';
name = "linux-libertine-" + version;
meta = {

View file

@ -410,8 +410,9 @@ args: with args; with stringsWithDeps; with lib;
generateFontsFromSFD = noDepEntry(''
for i in *.sfd; do
${args.fontforge}/bin/fontforge -c \
'Open($1);
Reencode("unicode");
'Open($1);
${optionalString (args ? extraFontForgeCommands) args.extraFontForgeCommands
}Reencode("unicode");
${optionalString (getAttr ["createTTF"] true args) ''Generate($1:r + ".ttf");''}
${optionalString (getAttr ["createOTF"] true args) ''Generate($1:r + ".otf");''}
Reencode("TeX-Base-Encoding");