Do you need fontspec for XeTeX or LuaTeX?

Do you need fontspec for XeTeX or LuaTeX?

The fontspec package provides an automatic and unified interface for loading fonts in LaTeX. XeTeX and LuaTeX (the latter through the luaotfload package) allows a direct interface to fonts which may be loaded by their name or filename, so no manual font installation is required.

How to load fonts in latex with fontspec?

The fontspec package provides an automatic and unified interface for loading fonts in LaTeX. XeTeX and LuaTeX (the latter through the luaotfload package) allows a direct interface to fonts which may be loaded by their name or filename, so no manual font installation is required. This package also provides access to the large number

How do I use an OpenType font with my latex?

If you don’t want to install the font as a system font, you can drop the font into the same folder as your tex document and xelatex should be able to find it. To use OpenType and TrueType fonts with tex, latex (for dvi, dvi-ps, dvi-ps-pdf workflow) special font metrics will need to be generated and font map installed.

How to select font by name in XeTeX?

On Mac OS X and Linux (Gnome at least) it is simple as double clicking the downloaded font. After that you can use fontspec & Xe (La)TeX to select that font by name (note that font name can be different from the file name).

How is setmainfont used in fontspec Stack Exchange?

setmainfont sets up the main document font and common variants such as bold and italic if they are available, so it is usualy used in the preamble. fontspec actually selects a one-off font at the point of use.

Do you need to use fontspec to select fonts?

MyFont-Roman.ttf and MyFont-Italic.ttf Remember you don’t need to use the \\fontspec command specifically. Any other font selection command from fontspec such as \\setmainfont or ewfontfamily can also be used with a Path specification as described earlier.

What kind of fonts can I use with fontspec?

This package also provides access to the large number of font features available with OpenType (and other) fonts, including upper and lower case numbers, proportional and monospaced numbers, swash letters, ligature control, and many many others. See the documentation fontspec.pdf for full information.