Questions tagged [font-metrics]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
49
votes
1answer
5k views

What do different \fontdimen<num> mean

I know that \fontdimen<num> returns some dimensions associated with the current font. What are they?
39
votes
4answers
9k views

What exactly is leading?

Wikipedia: In typography, leading ( /ˈlɛdɪŋ/) refers to the distance between the baselines of successive lines of type. By this definition, isn't it the same thing as line height? But in the ...
30
votes
6answers
5k views

Bad positioning of math accents for the beamer standard font

With a recent TeX distribution, the easy answer to this question is "load the sansmathaccent package" (which is Ariel's implementation of my answer). Actually, the corrected font should be loaded ...
17
votes
2answers
963 views

Scrartcl 13.999 point 14.4 point but not 14 point?

Can the scrartcl class make a true 14 point type? It will produce 13.999pt, 13.9999pt and 13.99998pt, but 14pt produces 14.4 point type only. Thanks :) \documentclass[fontsize=13.999pt]{scrartcl}...
10
votes
1answer
554 views

Can I declare a new automatic kern for “eV” without modifying font metrics?

The "eV" (electronvolt) unit and its variants ("MeV", "GeV", "TeV", ...) are heavily used in nuclear and particle physics. By default Computer Modern and other common TeX fonts do not contain a pre-...
10
votes
1answer
955 views

Calculate font metrics for glyphs inside MetaPost figures

I'm looking for a way to calculate the ascent and descent of a character glyph after it has been scaled and then drawn into a MetaPost figure. With TikZ, I can do this fairly easily by performing ...
10
votes
1answer
460 views

Feed fontdimen parameters to TeX

I have decided to use \fontdimen parameters as an array of numbers (to store data about Unicode Character Properties). The question now is to fill in those \fontdimen parameters in the most efficient ...
8
votes
1answer
438 views

How to adjust the slant angle of a diacritic

I am trying to change the slant angle of an accent. I have used the fontdimen to adjust the quantity. The first portion of the code that follows adjusts fontdimen5 (the x-height). This works as you ...
7
votes
1answer
2k views

How to make a command for a composed symbol to work with all font sizes?

In my paper I need a letter $\mathbb{R}$ with a small circle above it. Currently I'm using the following command: \newcommand{\obbR}{{\mbox{\kern1.4pt \raisebox{7pt} {\scriptsize$\circ$} \kern-9.1pt}\...
7
votes
2answers
1k views

How to make sense of font metrics?

If I have a Tex font, and I want to really understand how it will be laid out by Tex, and what features of the font to bear in mind when tuning my output to be beautiful, what tools are useful for ...
6
votes
1answer
598 views

Math accents overlap in beamer

Consider the following MWE \documentclass{beamer} \usepackage[english,spanish]{babel} \uselanguage{spanish} \languagepath{spanish} \usepackage{lmodern} \usefonttheme[onlymath]{serif} \usepackage[T1]...
5
votes
1answer
538 views

Why will TeX only find my tfm file for 11pt and 12pt fonts, not for 10pt?

In this answer I did something one shouldn't really do: I modified the font metric file cmsy10.tfm and saved it in my working TeX directory without changing the name. This had the desired effect: ...
5
votes
1answer
513 views

Why doesn't math \fontdimen's work with XeTeX?

Why doesn't the \fontdimen-command change anything with XeTeX? \input pgffor \def\chfndims#1{\foreach\dim in{13,...,19}{\fontdimen\dim#1=20pt}} \font\mymathfn="XITS Math:script=math" at 10pt \...
4
votes
1answer
220 views

How can I print the prosodic symbols in LaTeX?

The package "metre" or "metrix" is very good to print the prosodic accent for LaTeX. But, I counldn't print several signs. Does anyone know how to print this one ?
4
votes
1answer
189 views

setting kerning for a glyph and a ligature

How can one specify in PL-file the kerning for a glyph and a ligature (say, digit and en-dash) except for setting it for the first part of the ligature (which I would like to avoid)?
4
votes
0answers
102 views

Why no metrics for left subscripts and superscripts?

The math typesetting system in TeX aims at perfect spacing between symbols, hence has metrics describing the correct position of (right) subscripts and superscripts for each math symbol (as far as I ...
3
votes
3answers
597 views

Tweaking numeral height (and baseline)

I am using the Computer Modern Unicode Bright font, in the OpenType version (see http://cm-unicode.sourceforge.net or http://www.ctan.org/tex-archive/fonts/cm-unicode) in a XeLaTeX-compiled document. ...
2
votes
4answers
757 views

How to override default font with virtual font

My setup: TL 2014 (packaged with Debian 8) I'm trying to create a virtual font and override original font with it. The idea is to copy necessary files of original font with prefix 'o' and in virtual ...
2
votes
1answer
367 views

Generating an oblique (slanted) font in LuaLaTeX

With LuaLaTeX, I am using an OpenType font family (Dolly Pro) with roman small caps but no italic small caps. My block quote style uses italics, which I like, but one of my quotations has the ...
2
votes
1answer
365 views

Which package do I need for TACL template?

I've downloaded the following files from http://www.transacl.org/submission/ and placed them in the same directory: acl2012.tex acl2012.sty acl2012.pdf acl.bst but when i tried to compile the .tex ...
2
votes
0answers
65 views

Special fonts in math expressions (for CNC machines)

There are many questions about fonts in TeX, but we have a special need so I'm asking a new question. We are designing a CNC machine that will execute mathematical expressions. Therefore, we need to ...
2
votes
0answers
1k views

mathbbol and Metric (TFM) file not found

Hello everybody I am a new Latex user and I have a simple document: \documentclass[12pt,onecolumn]{report} \usepackage[ansinew]{inputenc} \usepackage{amsfonts} \usepackage{graphics,graphicx,color,...
2
votes
0answers
135 views

Which TeX engines support OFM fonts?

I'm extremely unhappy with the limitation of tfm fonts of 15 heights / 15 depths / 63 italic corrections. This is why I'm looking for a TeX engine which can load ofm fonts, probably etex, xetex or ...
2
votes
0answers
3k views

Problem with loading font metrics file [closed]

Trying to make PDF output with pdflatex halts with this message: Font T1/ptm/m/n/10=ptmr8t at 10.0pt not loadable: Metric (TFM) file not found After searching a bit I found that file ptmr8t.tfm is ...
1
vote
1answer
182 views

How to make metrics of LM-fonts the same as of CM-fonts?

In the article about LM-fonts it's written: Finally, they can be used with the CM metrics (e.g., via psfonts.map), so as to preserve typesetting of existing documents. IMHO, font metrics are part ...
1
vote
1answer
738 views

problem with qpxmath: qplri at Xpt not loadable: Metric (TFM) file not found

I face problems while using Gyre with MiKTeX. The simple example is a template for a journal, downloadable at http://nlp.ipipan.waw.pl/ojs/public/jlm-latex.zip Following the README file, I installed ...
1
vote
1answer
2k views

metric file not found for script font

I'm trying to get a handwritten-looking cursive font working in LaTeX. I found a list in the TUG font catalogue, and thought Vereinfachten Ausgangsschrift looked right. However, I can't get even the ...
1
vote
0answers
107 views

Manual font installation vs CTAN's metric files

I installed on my system some commercial PostScript fonts. For all of them, metrics were available on CTAN, namely in the Schmidt's collection http://www.ctan.org/pkg/w-a-schmidt. Now, most of the ...
0
votes
1answer
232 views

TinyTeX: Font TS1/ntxtlf/m/n/12=ts1-qtmr at 12.0pt not loadable: Metric (TFM) file not found

I'm trying to get a minimal LaTeX working inside a Docker container to support some documentation generation. Currently this is what I have going: RUN wget -qO- "https://github.com/yihui/tinytex/raw/...
0
votes
1answer
443 views

newtxmath in BasicTeX: Not working out of the box

I have a fresh installation of BasicTeX and cannot get newtxmath to work. There seem to be problems with math glyphs. Running this code: \documentclass{article} \usepackage{newtxmath} \begin{...
0
votes
1answer
339 views

mktextfm fails when pdflatex is invoked by cgi-bin script under www-data (apache)

I'm starting pdflatex from a shell-script invoked as cgi-bin application on Ubuntu (running under default www-data user) and from time to time I have the following kind of error preventing compiling: ...
0
votes
2answers
134 views

What is the formula for converting TeX points to pixels units?

I need this information because I would like to use the Computer Modern fonts in a Windows application that I am developing. The GUI library that I am using (wxWidgets) requires that all lengths be ...
0
votes
0answers
41 views

Is it possible to emulate behavior of \XeTeXuseglyphmetrics in luatex

The \XeTeXuseglyphmetrics feature of XeTeX is handy when typesetting content that is to be placed side-by-side while trying to adhere to a baseline grid. This is because \XeTeXuseglyphmetrics=0 forces ...