[lltx] Opentype font loading problem

Arun Dev arundvrjn at gmail.com
Mon Jul 19 07:25:14 CEST 2010


>
> Does `kpsewhich minionpro-regular.otf` report anything (need to be run
> from command line). Can you also post the database entry of any of the
> TTF fonts you ca use.
>
> Regards,
>  Khaled
>
> --
>  Khaled Hosny
>  Arabic localiser and member of Arabeyes.org team
>  Free font developer
>

Hi,

        kpsewhich minionpro-regular.otf is not indicating any thing. I
can use all truetype fonts in windows\fonts folder. Here is a listing
of a font.

{
   ["familyname"]="Berling Antiqua",
   ["filename"]={ "berling.ttf", false },
   ["fontname"]="BerlingAntiqua-Roman",
   ["fullname"]="Berling Antiqua",
   ["names"]={
    ["family"]="Berling Antiqua",
    ["fullname"]="Berling Antiqua",
    ["psname"]="BerlingAntiqua-Roman",
    ["subfamily"]="Regular",
   },
   ["size"]={},
   ["slant"]=0,
   ["weight"]=400,
   ["width"]=5,
  },
  {
   ["familyname"]="Berling Antiqua",
   ["filename"]={ "berlingb.ttf", false },
   ["fontname"]="BerlingAntiqua-Bold",
   ["fullname"]="Berling Antiqua Bold",
   ["names"]={
    ["family"]="Berling Antiqua",
    ["fullname"]="Berling Antiqua Bold",
    ["psname"]="BerlingAntiqua-Bold",
    ["subfamily"]="Bold",
   },
   ["size"]={},
   ["slant"]=0,
   ["weight"]=700,
   ["width"]=5,
  },
  {
   ["familyname"]="Berling Antiqua",
   ["filename"]={ "berlingi.ttf", false },
   ["fontname"]="BerlingAntiqua-Italic",
   ["fullname"]="Berling Antiqua Italic",
   ["names"]={
    ["family"]="Berling Antiqua",
    ["fullname"]="Berling Antiqua Italic",
    ["psname"]="BerlingAntiqua-Italic",
    ["subfamily"]="Italic",
   },
   ["size"]={},
   ["slant"]=-11,
   ["weight"]=400,
   ["width"]=5,
  },
  {
   ["familyname"]="Berling Antiqua",
   ["filename"]={ "berlingz.ttf", false },
   ["fontname"]="BerlingAntiqua-BoldItalic",
   ["fullname"]="Berling Antiqua Bold Italic",
   ["names"]={
    ["family"]="Berling Antiqua",
    ["fullname"]="Berling Antiqua Bold Italic",
    ["psname"]="BerlingAntiqua-BoldItalic",
    ["subfamily"]="Bold Italic",
   },
   ["size"]={},
   ["slant"]=-11,
   ["weight"]=700,
   ["width"]=5,
  },

 \setmainfont[Ligatures=TeX]{Berling Antiqua} works. But I noticed
that [Ligatures=TeX]  is not giving the desired result with truetype
fonts.

Some lines from the log file.

luaotfload | load font: auto-selecting default features for script: dflt (was l
atn)
luaotfload | load font: font family='berlingantiqua', subfamily='regular' found
: berling.ttf
luaotfload | load font: auto-selecting default features for script: dflt (was l
atn)
luaotfload | load font: font family='berlingantiqua', subfamily='bold' found: b
erlingb.ttf
LaTeX Font Info:    Font shape `EU2/Calibri(0)/bx/n' will be
(Font)              scaled to size 12.48001pt on input line 22.
luaotfload | load font: auto-selecting default features for script: dflt (was l
atn)
luaotfload | load font: font family='calibri', subfamily='bold' found: calibrib
.ttf
LaTeX Font Info:    Font shape `EU2/Calibri(0)/m/n' will be
(Font)              scaled to size 8.74863pt on input line 24.
luaotfload | load font: auto-selecting default features for script: dflt (was l
atn)
luaotfload | load font: font family='calibri', subfamily='regular' found: calib
ri.ttf
luaotfload | load font: auto-selecting default features for script: dflt (was l
atn)
luaotfload | load font: font family='berlingantiqua', subfamily='regular' found
: berling.ttf
luaotfload | load font: auto-selecting default features for script: dflt (was l
atn)
luaotfload | load font: font family='berlingantiqua', subfamily='regular' found
: berling.ttf
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <7> on input line 25.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <5> on input line 25.
LaTeX Font Info:    Font shape `EU2/Consolas(0)/m/n' will be
(Font)              scaled to size 8.2869pt on input line 28.
luaotfload | load font: auto-selecting default features for script: dflt (was l
atn)
luaotfload | load font: font family='consolas', subfamily='regular' found: cons
ola.ttf
luaotfload | load font: auto-selecting default features for script: dflt (was l
atn)
luaotfload | load font: font family='berlingantiqua', subfamily='italic' found:
 berlingi.ttf
LaTeX Font Info:    Font shape `EU2/BerlingAntiqua(0)/m/sc' undefined
(Font)              using `EU2/BerlingAntiqua(0)/m/n' instead on input line 37.

LaTeX Font Info:    Font shape `EU2/Calibri(0)/bx/n' will be
(Font)              scaled to size 8.66669pt on input line 38.
luaotfload | load font: auto-selecting default features for script: dflt (was l
atn)
luaotfload | load font: font family='calibri', subfamily='bold' found: calibrib
.ttf
LaTeX Font Info:    Font shape `EU2/Calibri(0)/bx/it' will be
(Font)              scaled to size 8.66669pt on input line 38.
luaotfload | load font: auto-selecting default features for script: dflt (was l
atn)
luaotfload | load font: font family='calibri', subfamily='bolditalic' found: ca
libriz.ttf


<c:/windows/fonts/calibriz.ttf><c:/windows/fonts/berlingi.ttf><c:/windows/fonts
/consola.ttf><c:/windows/fonts/calibri.ttf><c:/windows/fonts/berling.ttf><c:/wi
ndows/fonts/calibrib.ttf><c:/windows/fonts/berlingb.ttf><c:/w32tex/share/texmf/
fonts/type1/public/amsfonts/cm/cmex10.pfb><c:/w32tex/share/texmf/fonts/type1/pu
blic/amsfonts/cm/cmmi10.pfb><c:/w32tex/share/texmf/fonts/type1/public/amsfonts/
cm/cmmi7.pfb><c:/w32tex/share/texmf/fonts/type1/public/amsfonts/cm/cmr10.pfb><c
:/w32tex/share/texmf/fonts/type1/public/amsfonts/cm/cmr7.pfb><c:/w32tex/share/t
exmf/fonts/type1/public/amsfonts/cm/cmsy10.pfb><c:/w32tex/share/texmf/fonts/typ
e1/public/amsfonts/cm/cmsy7.pfb>
Output written on fontspec-luatex.pdf (1 page, 143940 bytes).


More information about the lualatex-dev mailing list