Questions tagged [opentype]

{opentype} concerns the OpenType scalable type face format

Filter by
Sorted by
Tagged with
2
votes
1answer
43 views

realscripts – can fakescripts substitute single missing chars

I have a font with real OT-superscripts which I can use easily with the realscripts-package. But I also need a superscript decimal dot which doesn't exist, thus realscripts falls back to the regular ...
0
votes
0answers
14 views

How do I embed an extended section of vertical text into horizontal using luatex-ja?

I have been trying to insert a segment of vertical text with line breaks (turning into columns) into a larger horizontal text. After many tricks and hacks attempted, most of which a) destroy ...
3
votes
1answer
99 views

Is there a way to render a TeX formula in pure HTML/CSS using Open Type fonts? [duplicate]

Is there a way to convert a TeX document into HTML that instead of relying on JavaScript, SVG, HTML Canvas, or images for rendering formulae to solely rely on HTML, CSS, and OTF fonts? In [Which ...
0
votes
0answers
56 views

How to get correct content from PDF copying/pasting with Source Han?

I installed the “Language-specific OTFs” version of Source Han Sans from Adobe Font’s Release page, e.g., SourceHanSansSC-Regular.otf, which sets the default ideographs suitable under Simplified ...
4
votes
1answer
51 views

Difficulty accessing OpenType ligatures with LuaLaTex and fontspec

I’ve been trying to use Greek ligatures with the font Alfios in the version available here. In particular, I’m trying to get the o-u ligature as can be seen in the image — that I get from MS Word. ...
7
votes
1answer
207 views

Are `mathfont` and `mathspec` intended for same purpose?

What package of these two is better for changing math-mode fonts (to .ttf fonts)?
0
votes
1answer
31 views

How to enable contextual substitutions in lstlisting?

Fira Code (available via its GitHub Release page) not only provides fancy programming ligatures (see Use Fira Code font with ligatures in code listings), but also contains contextual substitutions. ...
1
vote
1answer
60 views

Emulate sups feature for an Opentype font with XeTeX?

I'm trying to access superscript Cyrillic letter in Ladoga Pro Opentype font. I do not get them with \addfontfeature{VerticalPosition=Superior}. As far as I can see, they are not included in sups ...
2
votes
0answers
114 views

realscripts/fontspec update vs. some Opentype fonts

I have a file that was running smoothly a few weeks ago and is now stopping with the message: Argument of \__fontspec_strip_leading_sign:Nw has an extra } Using most system fonts, or Amiri, ...
3
votes
0answers
129 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
55 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
43 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
79 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
92 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
185 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
111 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
213 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
117 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
174 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
485 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
865 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
114 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 ...
71
votes
1answer
9k 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{...
13
votes
2answers
808 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
128 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
192 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
232 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
224 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
389 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
266 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
143 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 ...
3
votes
1answer
140 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
105 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
280 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
54 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
334 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
1k 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
139 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
579 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
302 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
138 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
71 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 ...
10
votes
0answers
651 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
225 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
111 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
290 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
1k 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
138 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
85 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 \...
3
votes
1answer
880 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 ...