fontspec icon indicating copy to clipboard operation
fontspec copied to clipboard

Font selection in LaTeX for XeTeX and LuaTeX

Results 137 fontspec issues
Sort by recently updated
recently updated
newest added

When a font is first loaded, it should print what features it has available.

Improvement

Setting SizeFeature to load different opticals of a font works with LuaLaTeX but not XeLaTeX. Here is a MWE: ``` \documentclass{article} \usepackage{fontspec} \newfontfamily\fonta[SizeFeatures={{Size={5-120},Font=* Display}}]{Minion Pro} \newfontfamily\fontb[SizeFeatures={{Size={5-120},Font=* Subhead}}]{Minion Pro} \newfontfamily\fontc[SizeFeatures={{Size={5-120},Font=*}}]{Minion Pro}...

In the following example the two groups should give the same results but they don’t: ``` latex \documentclass{minimal} \usepackage{fontspec} \setmainfont{EB Garamond} \begin{document} \textit{\addfontfeature{CharacterVariant=5:0}very}\\ \textit{\addfontfeature{CharacterVariant=5:1}very}\\ \textit{\addfontfeature{CharacterVariant=5:2}very}\\ \textit{\addfontfeature{CharacterVariant=5:3}very}\\ \textit{\addfontfeature{CharacterVariant={4,5:3}}\& very}\\ \fontspec{EB Garamond...

By testing the widths of the `i` and `m` glyphs, we should be able to check whether the current font is monospaced. In which case, we should specify sensible defaults...

It is undesirable to have common ligatures when letter spacing the text. IIRC InDesign disables common ligatures when the letter spacing exceeds some threshold, we probably should do the same....

Would be good to be able to write ``` WordSpace={5pt,2pt,1pt} ``` as well as the current syntax. Note here that when we write ``` WordSpace={5pt} ``` then we'd best scale...

Paraphrased from the XeTeX mailing list: > Is it possible to set different interword space for different font > sizes? E.g., > SizeFeatures={ > {Size=-10,WordSpace={20,1,1}}, > {Size=10-,WordSpace={1.1,1,1}} > } I...

This isn't usually a problem, but in many places in the fontspec code the user-passed options are fully expanded before being passed onto `\setkeys` and so on. This is a...

From Andrew Moschou: Say I have this document: ``` \documentclass{article} \usepackage[no-math]{fontspec} \makeatletter % \zf@package@euler@loadedtrue\zf@math@lucidatrue \setmainfont[Numbers={OldStyle,Proportional}]{Minion Pro} \setmathrm[Numbers={OldStyle,Proportional}]{Minion Pro} \usepackage{MnSymbol} \newfontfamily\Latin[Numbers={OldStyle,Proportional}]{Minion Pro} \DeclareSymbolFont{Lmn}{EU1}{\zf@family}{m}{n} \DeclareSymbolFont{Lmit}{EU1}{\zf@family}{m}{it} \catcode`¡=13 \newcommand¡[1]{\DeclareMathSymbol{#1}{\mathord}{Lmn}{`#1}} ¡0¡1¡2¡3¡4¡5¡6¡7¡8¡9 \newcommand¡[1]{\DeclareMathSymbol{#1}{\mathalpha}{Lmit}{`#1}} ¡a¡b¡c¡d¡e¡f¡g¡h¡i¡j¡k¡l¡m¡n¡o¡p¡q¡r¡s¡t¡u¡v¡w¡x¡y¡z ¡A¡B¡C¡D¡E¡F¡G¡H¡I¡J¡K¡L¡M¡N¡O¡P¡Q¡R¡S¡T¡U¡V¡W¡X¡Y¡Z %...

Improvement

From: "moneylcj" Subject: Re: The \fontspec commad's option "ExternalLocation"can'tcoexist with "BoldFont" or "ItalicFont" option ? I found the BoldFont and Regular font all must be installed-font or all must to...

Improvement