mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +00:00
Now Linux Libertine font works in TeX
svn path=/nixpkgs/trunk/; revision=11740
This commit is contained in:
parent
c6cf72aaa9
commit
0875919fa1
|
@ -12,6 +12,9 @@ rec {
|
|||
phaseNames = ["doUnpack" "generateFontsFromSFD" "installFonts"];
|
||||
|
||||
createTTF=false;
|
||||
extraFontForgeCommands = ''
|
||||
ScaleToEm(1000);
|
||||
'';
|
||||
|
||||
name = "linux-libertine-" + version;
|
||||
meta = {
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue