Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [opentype]

{opentype} concerns the OpenType scalable type face format

3
votes
0answers
86 views

XeTeX + \overline: Which \fontdimen’s are used?

Edit: This question has been thoroughly reedited to highlight the problem at hand. I am trying to mimic \overline to create similar symbols. According to Overline thickness on TeX.SX, and ...
2
votes
0answers
34 views

\addfontfeature resets \prehyphenchar and \posthyphenchar

This question is similar, but applies only to XETEX. In LuaTEX, \prehyphenchar and \posthyphenchar supposedly affect the current language: All languages start out with \prehyphenchar=`\-, \...
1
vote
1answer
40 views

tikzpicture and OpenType Fonts

I have a tikzpicture graph. I would like to use OpenType fonts (specifically Adobe Garamond Pro) on the axis marks. The MWE below uses OpenType for the axis labels, legend, and title, but not for ...
0
votes
0answers
59 views

Custom Lua feature for CID-keyed font

fonts.handlers.otf.addfeature in luaotfload can be used to create custom features for fonts. The unicode values of glyphs can be used for CID fonts in the same way as for GID fonts, but some fonts ...
4
votes
0answers
63 views

Source Han: Em dashes (U+2014) fail to compose as U+2E3A and U+2E3B

Background A 破折号 (pòzhéhào, Chinese em dash) is a punctuation mark used in Chinese typesetting. It has very similar usage to the Western em dash. The Chinese em dash has two ...
5
votes
0answers
155 views

Localized glyphs (locl) have unicode value U+FFFD (�)

Originally this seemed to me like a font issue, as there was no equivalent problem with other fonts, as indicated by this good MWE: Copied text from good PDF EBGaramond12-Italic.otf: [ - ] бгдпт [...
1
vote
0answers
85 views

PDF/A-1b compliance whilst embedding OTF files

As per this wikipedia article (see Fonts section), only pdf v1.6 and above is able to embed opentype fonts in the document. Now the problem is that, my institution requires pdf /A-1b compliance which ...
3
votes
1answer
158 views

How to install ttf and otf fonts for ConTeXt

What command do you use to install TrueType fonts or OpenType fonts? I like ConTeXt and I want to use it with TrueType fonts and OpenType fonts. There are so many variants of TeX that I don't know. ...
4
votes
0answers
101 views

mathspec or mathastext equivalents for ConTeXt

I have just started out with ConTeXt, and am wondering if there is a way to use fonts that do not have an OpenType math table or a specifically designed math font in the way that mathspec or ...
6
votes
1answer
135 views

Opentype features in fallback math font (e. g. EB Garamond) in ConTeXt

Preamble: In a document I want to use EB Garamond for both text and maths and I don't want to install anything that doesn't come with TeX Live (i. e. no Garamond Math and no URW Garamond). So here's ...
8
votes
2answers
372 views

Install an Updated Version of an Open Type Font for the Use with LuaLaTeX in TeX Live 2018

In my TeX Live 2018 installation on Linux, I want to replace the Libertinus fonts shipped with TeX Live by their latest GitHub build. If they are used in LuaLaTeX e.g. via \usepackage{fontspec} \...
10
votes
2answers
655 views

Context : How to install and use new opentype (math) fonts?

Motivation : I'm a die-hard user of LaTeX which is intrigued by ConTeXt and try to learn enough of it to be able to judge on its usability. For now, I'm limiting myself to Mark IV/LuaTeX (Mark II ...
1
vote
3answers
90 views

“native” math ligature with OpenType feature

With package semantic, one can easily produce special math symbols via ligature (e.g. -> becomes \rightarrow). In OpenType, however, there are similar things. For example, the Fira Code font ...
68
votes
1answer
5k views

Which OpenType Math fonts are available?

What OpenType math fonts are there available for usage in TeX/LaTeX, e.g. with the unicode-math package? Here is a MWE which you can use to show off the font. \documentclass{article} \pagestyle{...
11
votes
2answers
580 views

Choice of consistent unicode open-type fonts for Phd Thesis in Engineering

Having written about 60% of my Phd thesis, I gave it to my advisor for review. I used Pdflatex and Latin Modern fonts for text and math. For source code listings, I did not change anything in ...
1
vote
1answer
80 views

Define SizeFeatures for my own font face with fontspec

I use a large family of fonts, containing a lot of fontfaces. Besides standart Upright, Bold, Italic, and BoldItalic I need to use, e. g. Semibold. I define the new face with FontFace = {...
6
votes
1answer
139 views

fontspec/luaotfload: defining custom features without OTF feature file support

Since 2016, fontspec no longer supports standard OTF feature files. These files made it possible to define sophisticated custom changes to the way an OpenType font is processed. That feature file ...
4
votes
1answer
182 views

Filling an empty slot in a font with another glyph from the same font

I am trying to use an existing glyph from an OpenType font to fill an empty slot in the same font using LuaLaTeX. fontspec.pdf (v2.6g, part VI) shows a hack that can substitute already existing glyphs ...
1
vote
1answer
168 views

Using OTF with MiKTeX, XeLaTeX on Windows

Install free Cabin Open Type fonts in your home directory. Consider this file to be compiled with XeLaTeX: \documentclass{article} \usepackage{fontspec} \setmainfont{Cabin} \begin{document} {\...
2
votes
1answer
262 views

GFS Didot's Type1 italic word-initial theta (θ→ϑ) is missing

Update 2 I contacted the maintainer about this issue, who was quick to respond with a fix. It should be in CTAN shortly. Original question 0 The Type1 version of GFS Didot has a feature that turns ...
4
votes
0answers
226 views

Is there a difference between the Type 1 and OpenType versions of MetaType1 fonts?

MetaType1 is a system devised to create PostScript Type 1 fonts from MetaPost sources, similar in spirit to Knuth's original MetaFont but producing outline fonts instead of bitmaps. It comprises a set ...
3
votes
1answer
106 views

Using OpenType superior figures with siunitx

I want to use the specifically designed OpenType superior figures in my document. Doing this with fontspec is easy enough, but I couldn’t get siunitx to make the change as well and the package ...
2
votes
1answer
115 views

StylisticSet Command dose not work for some fonts

In some Open-type fonts there are some stylistic sets are available, which help to select the glyph-set which may be appropriate to particular language. For Marathi, the language I want to use, some ...
1
vote
1answer
87 views

Spacing between bars in textstyle fractions--issue with STIX2 or OpenType Math specification

Given the following code: \documentclass{article} \usepackage{unicode-math} \setmathfont{STIX2Math.otf} \begin{document} \[ \frac12\textstyle\frac12 \] \end{document} Using LuaLaTeX version 1.0....
1
vote
1answer
228 views

Use UppercaseSmallCaps with Alegreya and beamer

The problem of Alegreya which has a separate font family for small caps and how to properly include both in order to use bold and italics has been discussed here. However, I would like to use the font ...
1
vote
0answers
49 views

insert the Chinese character 'Biáng' with opentype [duplicate]

With the help of Source Han Serif (思源宋体), one can pseudo-encode some unencoded glyphs, such as the following Chinese character: One can do this through the use of their IDSes (Ideographic Description ...
3
votes
1answer
285 views

What hinders XeTeX in accurately detecting OpenType features?

I decided to investigate the OpenType features of the fonts installed in my computer by using the XeLaTeX code from the chosen answer to How do I get a list of all font features supported by current ...
15
votes
4answers
896 views

Are there opentype sans math font(s) under development?

Rationale \TeX and \LaTeX were created with the (implicit) goal to create printed documents, mostly in English. In this context, using serif fonts as a default makes sense ; in particular, using ...
2
votes
1answer
113 views

LuaLaTeX: fonts.handlers.otf.addfeature kerning pairs with unexpected behaviour

So I tried to adapt this answer: https://tex.stackexchange.com/a/370469/75284 to all problematic neighbors of the narrow 1 and added the second group of kerning pairs, the ones that specify the ...
12
votes
3answers
513 views

LuaLaTeX: Change kerning around “1” to simulate proportional figures

I have the problem that both the original Helvetica and the Neue Helevetica font families by Linotype, in their OpenType versions, seem to not have proportional figures, only tabular figures, where ...
6
votes
3answers
271 views

`ccmp` in Lua(la)TeX/ConTeXt, with Source Han serif font

Google and Adobe released a new CJK font Source Han Serif recently. One of the amazing feature is that, using opentype ccmp feature, it becomes possible to type the chinese character biang, as ...
0
votes
0answers
103 views

Loading font option in fontspec

I want to use the Alegreya Sans font in my document, so I installed the font on my computer, and use fontspec package to load it. But I just can load several option like Algegreya Sans Light, Medium,...
1
vote
1answer
70 views

How to change font information such that XeTeX selects the correct face of the font family?

I am revising the Fetamont fonts and I am faced with a unsolved problem related to XeLaTeX (or maybe fontspec): I have put all the OpenType font faces in the local font folder (so XeLaTeX is able to ...
6
votes
0answers
503 views

TeX (LuaTeX, XeTeX, fontspec) support for OpenType variable fonts

Is anyone working on implementing support for the new OpenType variable fonts in any TeX/LaTeX implementation like XeTeX or LuaTeX? Will fontspec support accessing the new tables?
8
votes
2answers
213 views

OpenType 'rand' (Randomize) feature not correct implemented in XeTeX?

If XeLaTeX (v3.14159265-2.6-0.99996) compiles \documentclass{article} \usepackage{fontspec} \setmainfont[Letters=Random]{punknova-regular.otf} \begin{document} bananes et ananas \end{document} it ...
8
votes
1answer
105 views

Does LuaTeX + OpenType always calculate inter-word spacing stretch and shrink as 1/2 and 1/3 of the nominal space?

As far as I know, OpenType does not have the concept of inter-word spacing stretch and shrink, only the normal amount. And \fontdimen 3 and 4 are calculated by luatex or the fontloader instead. And ...
6
votes
1answer
246 views

Asymptote with lualatex and otf fonts

Consider the following simple asymptote file: import settings; import three; settings.tex = 'lualatex'; settings.outformat = 'pdf'; texpreamble("\usepackage{luatex85} \usepackage[math-style = TeX]{...
1
vote
1answer
682 views

Uppercase headings with uppercase numbers

I'm trying to get uppercase section titles with uppercase numbers, but for some reason \addfontfeature can't be used inside \titleformat. Why is that and how could I get this to work? \documentclass{...
5
votes
0answers
127 views

Display available contextual swash/alternative etc. features of OpenType fonts through LuaTeX

Is there a way to find out what pairs of contextual alternatives of characters of an OpenType font through luatex (and possibly other packages such as luaotfload and fontspec)? The question is a ...
4
votes
2answers
81 views

Limit VerticalPosition feature to the numbers only

By selecting the feature VerticalPosition = Numerator/Superior/Inferior etc... one may vary the relative position of numbers and other character with respect to the baseline. For example, this code \...
4
votes
1answer
676 views

OTF Sans font best matching TeX Gyre Termes?

TeX Gyre Termes and TeX Gyre Heros might be a bad match, at least when used in a direct way: \documentclass{article} \usepackage{unicode-math} \setmainfont{TeX Gyre Termes} \setsansfont{TeX Gyre ...
8
votes
1answer
378 views

Math kerning with non-math OpenType font

I am setting my thesis in Garamond Premier Pro, which does not have support for OpenType math. Still, by mixing and matching, I have managed to hack together something usable, but sometimes the ...
3
votes
0answers
124 views

How to use fonts.handlers.otf.addfeature, etc.? [duplicate]

The following commands are used in some of the examples about Lua(La)TeX and ConTeXt in their manuals, tutorials and on the net: fonts.handlers.otf.addfeature, fonts.protrusions.vectors, fonts....
0
votes
0answers
87 views

Unexpected behaviour (bug?) with unicode-math in italic in TexLive 2016

I recently updated to TexLive 2016 (specifically MacTex 2016) from TexLive 2015 and, without changing any source code, the output of a document changed with XeLaTeX. Specifically, bold math italic ...
0
votes
1answer
391 views

Characters per line and font size [duplicate]

Can i automatically change font size to get desired (66) "Characters per line" value? I do not want to change magins size or textwidth, only font size. Alternatively i'm looking for a macro which ...
2
votes
1answer
337 views

Relative Path to OpenType Font in LyX

I am trying to use custom OpenType fonts (using LuaLaTeX and the fontspec package) in a LyX document under version control. The document is potentially accessed by others on different machines, so I ...
7
votes
1answer
110 views

Check whether an opentype math font is loaded

How can I check (using a conditional, preferably) whether an opentype math font is currently loaded (in use)? For example, using the following commands: \usepackage{unicode-math} \setmathfont{...
1
vote
0answers
207 views

OpenType features for a math font in CONTEXT

Using CONTEXT MkIV, is it possible to add custom/virtual OTF features to a font used in math mode? Here is a simplified version of what I want to do. I want to change all occurrences of 1.2 in math ...
1
vote
1answer
225 views

CM Concrete with Latin Modern bold in LuaLaTeX/XeLaTeX?

With LuaLaTeX or XeLaTeX, how do I use Concrete (or any other font family that already has a bold) as main font but use Latin Modern bold as bold? This doesn’t work: \usepackage{fontspec} \...
6
votes
2answers
335 views

Optical sizes and how to use them (luaTeX, possibly XeTeX)

I know of the OTF "optical sizes" feature, but I don't know how to use it properly. How can I check which optical sizes are available for my font? E.g. I have Adobe Caslon Pro which has the ...