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

@ -411,7 +411,8 @@ args: with args; with stringsWithDeps; with lib;
for i in *.sfd; do
${args.fontforge}/bin/fontforge -c \
'Open($1);
Reencode("unicode");
${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");