Suppose I want to use (with lualatex) an OpenType font that has no TeX support (yet). Do I need .map, .enc, .fd, .tfm, .vf files and/or some adjustments at LaTeX level or will fontspec be powerful enough to extract all the information needed from the .otf file and convert them to something that LaTeX would understand (NFSS?) ?

How does the answers to the preceding question apply for an OpenType math font loaded via unicode-math?

  • No, you don't need extra files. The .otf contains all the information that is necessary. For math fonts this also holds true, but to use it in a sensible way it has to contain the MATH table. – Henri Menke May 12 '16 at 7:31
  • @HenriMenke What is the MATH table and how does the 'mapping'(?) works? – cjorssen May 12 '16 at 8:04

You don't need map, enc, tfm, vf. xetex has the necessary code to extract the information built-in, for luatex you need a fontloader like e.g. luaotfload.

You normally also don't need fd-files. fontspec tries hard to guess which font or font feature is needed for some font shape and then builts the NFSS-structure on-the-fly. But it can fail, that's why there are options like BoldFont which help fontspec.

You still can create fd-files and use them. E.g. the default lmr-fonts are setup in the eu1lmr.fd / tulmr.fd.

|improve this answer|||||
  • Perhaps add that .fd files are required for cases where there are different font files for different optical sizes (only Latin Modern that I know of). – Joseph Wright May 12 '16 at 7:51
  • @JosephWright: I don't think that they are required, you could use the fontspec option SizeFeatures. – Ulrike Fischer May 12 '16 at 7:55
  • Thanks (+1). Regarding .fd files, fontspec will look for them? – cjorssen May 12 '16 at 8:05
  • @UlrikeFischer Yes but you probably wouldn't want to do that in every document if using a font with optical sizes available – Joseph Wright May 12 '16 at 8:17
  • @cjorssen: LaTeX will look for "EncodingFamily.fd" if it doesn't know a font. – Ulrike Fischer May 12 '16 at 8:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.