fontspec
fontspec copied to clipboard
Font selection in LaTeX for XeTeX and LuaTeX
With the `FontFace` option one can easily add more NFSS series/shapes, but it doesn't work for standard combinations: ``` \documentclass{article} \usepackage{fontspec} \setmainfont{TeX Gyre Termes}% [ FontFace={m}{it}{TeX Gyre Heros/I}, FontFace={blub}{it}{TeX Gyre...
I got baffled by the following for a while. Consider ``` latex \documentclass{article} \usepackage{fontspec} \setmainfont{texgyretermes-regular.otf} \newfontfamily\NoTeXLig {texgyretermes-regular.otf} \begin{document} $\Umathchar"0"0"27$ and for comparison {\NoTeXLig '} and {'} %\ttfamily\makeatletter\meaning\mv@normal \end{document} % Local...
As can be seen in the following example luatex/luaotfload sets the interword stretch (and shrink) in a mono font to 0pt: ``` \documentclass{article} \usepackage{fontspec,ifluatex} \begin{document} \ifluatex \font\test={file:lmmono10-regular.otf} %luatex/luaotfload \else \font\test="[lmmono10-regular.otf]"...
@wspr, I wonder whether `opbd` could be implemented in fontspec. the OpenType feature “optical bounds” has been implemented recently in ConTeXt. Here you have a sample that shows the feature:...
The following typo gives a fairly cryptic error message: \setmonofont[Scale=MatchLowerCase]{texgyrecursor-regular.otf} We should be able to intercept that ...
See motivation from the hyphenat package, and [this question](http://tex.stackexchange.com/questions/299/how-to-get-long-texttt-sections-to-break/304?noredirect=1#comment536558_304) and [this other question](http://tex.stackexchange.com/questions/10377/texttt-overfull-hbox-problem/10378#10378).
This was mentioned at tex-stackexchange.com (my username there is RobtA, not the same RobtA as GitHub). I am currently hacking some fontspec commands so that I can intercept user requests...
Imagining something like `[ExHeight=5pt]` or `[CapsHeight=10pt]` as an alternative to `[Scale=MatchLowercase]`. From http://tex.stackexchange.com/questions/261128/scale-font-to-a-desired-x-height-em-cap-height-etc-in-fontspec.
Consider the following minimal example, ``` \documentclass{article} \usepackage{fontspec} \ExplSyntaxOn \def\showfontdimen{ \dim_to_decimal:n{\fontdimen3\font}\quad \dim_to_decimal:n{\fontdimen4\font} } \ExplSyntaxOff \setmainfont{Latin Modern Roman}[WordSpace = {1, 0.5, 0.5}] \begin{document} \showfontdimen \newfontfamily\lm{Latin Modern Roman}[WordSpace = {1, 0.5, 0.5}]...
Examples available here: http://minimals.metatex.org/current/context/test/doc/context/tests/mkiv/fonts/extensions-001.tex http://minimals.metatex.org/current/context/test/doc/context/tests/mkiv/fonts/extensions-002.tex http://minimals.metatex.org/current/context/test/doc/context/tests/mkiv/fonts/extensions-003.tex http://minimals.metatex.org/current/context/test/doc/context/tests/mkiv/fonts/extensions-004.ex http://minimals.metatex.org/current/context/test/doc/context/tests/mkiv/fonts/extensions-005.tex http://minimals.metatex.org/current/context/test/doc/context/tests/mkiv/fonts/extensions-006.tex http://minimals.metatex.org/current/context/test/doc/context/tests/mkiv/fonts/extensions-007.tex