Questions tagged [kerning]

{kerning} is the process of adjusting the spacing between characters in a proportional font, usually to achieve a visually pleasing result.

Filter by
Sorted by
Tagged with
3
votes
1answer
104 views

Minon Math font `'` and `\prime` behaves differently

I am using Minion Math to typeset a book. The editor asked if it is possible to lower the position of the ' in equations when it is used with a lowercase p letter. I noticed that the behaviour of ' ...
3
votes
1answer
55 views

How do I make the kerning between letters uniform?

I believe letter I's here are what caused the problem, so how exactly do I force the kerning between letters to be the same in order to make all three lines of the same length?
2
votes
1answer
30 views

Left vertical alignment of characters

In the following MCE, the characters don't start at the same (left) vertical line (look at the horizontal rule of "T"). \documentclass{article} \usepackage[showframe]{geometry} \ifpdftex \...
3
votes
1answer
74 views

LuaLaTeX: GSUB/GPOS multiple glyphs per type only partially kerned

I have an issue in combination with the fontspec package and a ttf/otf font I am developing: Kerning works fine in XeLaTeX (and e.g. in browsers etc.), but kerning is only partially applied in ...
0
votes
0answers
65 views

LuaLaTeX and Microtype with cmbright — spacing and kerning

I like the cmbright typeface, like what microtype does, and love the facilities LuaLaTeX can offer. However, microtype's kerning and spacing features are not compatible with LuaLaTeX. I definitely ...
0
votes
1answer
52 views

How to add kerning to the word

On my Lbend command I need more space between a second word letters. How to get more space between letters? \addfontfeature{LetterSpace=5.0} doesn't want to work with \TU/lmtt/bx/n/24.88 font and I ...
7
votes
2answers
442 views

Default kerning around hyphens is ugly

I have noticed that default kerning of hyphenated words (like "Finite-Valued") looks like this: e-V As you can see, the hyphen is too close to the e and too far away from the V. Is there a ...
1
vote
1answer
97 views

ConTeXt: Letterspacing in style alternative

I want to create a new style alternative, which would allow me to change the text and font (to uppercase bold in this example) while also increasing the letterspacing. However, trying to do this leads ...
2
votes
1answer
60 views

Kerning against space, which model is the most suitable one?

Many professional fonts contain kerning instructions between the space (U+0020, the character) and other characters. These kerns help the pages achieve a more balanced typographical colour. For ...
4
votes
2answers
127 views

Why is kerning not applied when mixing OpenType character variants (swashes) with regular characters?

I am using an OpenType Font (OTF) that provides a number of character variants, for example variants of B, E, H with swirls, tails etc. The variants are accessed through the OpenType features "...
0
votes
0answers
82 views

Finishing math with a period (part 2)

Related: Finishing math with a period I believe of the two options \[|f(x)-(y)|<\epsilon\text{.}\] or \[|f(x)-(y)|<\epsilon.\] the first one is correct. However, a problem that was brought up (...
3
votes
1answer
70 views

Can I change the bounding box of the digit 1?

This is a follow-up to Is this horizontal alignment correct?. In short, I would to print the text 100 µm visually centered on a scale bar. The problem with this is the digit 1 has the same wide ...
1
vote
1answer
41 views

Kerning based on the length of Text

I am using the flagderiv package for proofs but it has no way of putting text before the line number so I have just used \kern to put the text where I want it, but this then misaligns the comments. ...
1
vote
1answer
57 views

Macros as argument for pgf parser

As continuation for answer on this question: Kerning with xcolor There is first attempting define kerning macros for whole word with colored first letter, without parenthesis: (in more programmer-...
2
votes
3answers
164 views

Booktabs Cell Coloring Overflow and Position Bias

I want to fill booktabs table cells in a custom manner. I did two examples as below, one with kerning and the other is straight booktabs table. The first problem is in both tables, coloring that is ...
3
votes
1answer
99 views

Kerning with xcolor

My question, in variants, I saw, asked many times here, but I can't solve problem. If we use \textcolor{FirstLetter}SecondAndOtherLettersOfWord, we lost font kerning between first and second letters. ...
7
votes
1answer
344 views

What do \vec{\mkern0mu x} and \vec{{} x} mean?

In the following posts and many other besides [0] [1], I've seen people use \vec{\mkern0mu x}, \vec{{} x}, and variants thereof to adjust the vector arrow's kerning. How do these work? What's the ...
3
votes
1answer
47 views

txfonts kerning when exiting inline math mode

I noticed strange behavior, when a hyphen follows inline math mode, if I am using the txfonts package. If I use the Computer Modern font, the kerning of these two cases, while not precisely the same, ...
2
votes
1answer
47 views

Why is there a different kern between delimiters and math characters compared to their italic text character?

Occasionally, I like to typeset lists using the $\left< ... \right>$ notation in order to account for larger contents. I noticed that there is a difference in kerning toward the closing ...
0
votes
1answer
57 views

Having asterisk above and not inline in code listings

I want to writing code listings with asterisk in-line not above line. That is something like this: But when I tried this: \documentclass{article} \usepackage{listings} \begin{document} \begin{...
1
vote
1answer
48 views

Problem with custom font feature for addition kerning in OpenType font

I try to add some custom kerning to an OpenType font used with fontspec under lualatex. The real-world example uses the Brill fonts, but as they are not part of TeX Live I use Libertinus in the ...
4
votes
2answers
73 views

Normalizing space after stacked characters in LaTeX: Typesetting o͘

I am attempting to typeset the o͘ character in LaTeX by stacking a raised period on top of the letter o. The spacing for the results I've achieved is inconsistent, as you can see in the below ...
4
votes
1answer
97 views

How to extend (or kern) a subtitle to the text width?

I have a subtitle that is almost as large as the text width. For aesthetical purposes, I would like to strech it a bit so it covers the whole text width, and be more harmonious with the picture below ...
1
vote
0answers
35 views

How to reformat “f” labelling in tasks package so the right side has more kerning space

I have a working solution to the problem posed here for other packages such as enumitem, but I require a solution that works in the tasks package, which is not nearly as flexible. \documentclass{...
5
votes
2answers
383 views

Why do I have to put braces around my macro for subscripts / indices?

I want to define a macro \ind which let's me set in math mode a subscript in upright letters and when starred (\ind*) in italic letters. Additionally, an optional argument allows me to adjust the ...
1
vote
0answers
38 views

Kerning modification in a sbox

I tried to adapt the solution given by Egreg to have Roman numerals over- and underlined (Roman numerals with over- and underline). However, I run into a problem when I reduce the kerning for Roman ...
1
vote
0answers
62 views

Kerning of Chinese characters interacts with hyperref

I have a problem with Chinese punctuation. In some situations the dot appears on a separate line. I have been able to track the problem down to hyperref: \documentclass[10pt]{scrbook} \usepackage{...
0
votes
1answer
33 views

\kern after \linebreak doesn't work

MWE: \documentclass[a4paper]{article} \usepackage[margin=30mm]{geometry} \usepackage{xcolor} \begin{document} \noindent this is good that is food this is good that is food this is good that is food ...
2
votes
0answers
82 views

Specifying kerning for math fonts

I'd like to manually fix some longstanding spacing issues between certain pairs of capital letters in Latin Modern Math, such as UF and YX. Because these pairs represent actual products, I'd rather ...
1
vote
0answers
27 views

How can I change the kerning of all relations in script styles?

Let's say that I am dissatisfied with the lack of horizontal spacing around relations in scriptstyle and scriptscriptstyle. I would like to \mkern them by 1mu on either side, because I think that ...
3
votes
1answer
78 views

Turn off auto-insertion of italic correction (undesired extra kerning)

The LaTeX2e font selection manual states Commands defined by \DeclareTextFontCommand automatically take care of any necessary italic correction (on either side). So running the following example \...
1
vote
1answer
83 views

stix2 changes spacing in mathrm

Compare \documentclass{article} \usepackage{stix2} \begin{document} $$\mathrm{Var}$$ \end{document} to the same example without the \usepackage{stix2}. With stix2: Without stix2: With stix2, the ...
0
votes
0answers
40 views

Change kerning for specific letter combinations P- and P--

I'm looking for an easy way to globally change the kerning for the following character pairs: P- and P-- I am using bitstream-charter as a font through the mathdesign package and the hyphen is ...
4
votes
1answer
161 views

Kerning ligatures with font-feature in luatex

Manipulating fonts is somewhat daunting, and usually too much for me, so I restrict myself to a few things. I use Duffner's EB Garamond -- his original version from his website. I'm a bit puzzled by ...
2
votes
1answer
53 views

Globally define kerning of math letter

Is it possible to have a kerning reconfiguration in the preamble to allow a small amount of whitespace for specific letters. In this example, I would want right space to the right of g and f when ...
4
votes
0answers
72 views

LuaTeX: OpenType staircase kerning (MATH kerning) has opposed effect than expected

This is a follow up question to a previous reported font problem. Compiling the following MWE with LuaLaTeX \documentclass{article} \usepackage{unicode-math} \setmathfont{LibertinusMath-Regular.otf}[...
0
votes
0answers
59 views

Adjusting spacing in mathdesign

I like mathdesign package, but spacing between some letters looks pretty awful, for example, look at the letter A: I've found the solution here: Make Characters Active via Macro in Math Mode. So, ...
3
votes
0answers
112 views

Subscript strangely spaced: Bug in font Libertinus or LuaTex engine? Possible quick and dirty fix?

Compile this MWE with LuaLaTeX \documentclass{article} \usepackage{libertinus} \begin{document} \(w_j q^j\) \end{document} The result is: IMHO, the space between "w" and its subscript "j" is too ...
1
vote
0answers
68 views

Imitate poster typography

So I am trying to recreate the following poster (or something similar) My problem is obtaining the right typography and spacing. In particular I am having problems finding a good way to avoid hyphens....
0
votes
0answers
44 views

Setting global Luatex Umath primitives for an entire multi-page document

I would like to modify a \Umath* primitive for the entirety of the Lualatex document, containing multiple. It seems that using \makeatletter \AtBeginDocument{% \check@mathfonts \Umathsubsupvgap\...
1
vote
2answers
61 views

Add space between italic/smallcaps glyph and upright parenthesis

I'm typesetting a document where unavoidably there are upright parentheses in the middle of italic or smallcaps words, like th(is) \textit{th}(\textit{is}) (or the same with \textsc). In only these ...
4
votes
1answer
91 views

RTL constructed script can't be typeset properly in LuaLaTeX?

I have a grammar for one of my constructed languages, which uses its own right-to-left script. In my font for this script, I have the glyphs mapped to the Private Use Area and rely on wrapping text in ...
2
votes
3answers
130 views

New command to change vertical space in overset doesn't work

I want to reduce the vertical space between a symbol and a letter that are above each other. I have the following code, using a new command $\oset$ that gives exactly the output I need. But ...
9
votes
1answer
3k views

what is \kern good for

What is \kern instruction good for and how is it defined? I cannot find it in Knuth's book TeXbook.
4
votes
0answers
116 views

Context aware kerning in siunitx with per-mode?

Assume I want to type in the units for irradiance (radiant flux (power) received by a surface per unit area). I can do this as follows \si[per-mode=symbol]{\watt\per\m\squared} However, the kerning ...
1
vote
1answer
110 views

Math kerning for entire document

My question today is: How can I adjust the kerning for the math environment of the entire document? I am aware of the typical ways to add space, including \, etc., but I was hoping to make the spaces ...
6
votes
3answers
510 views

What does TeX do to make text more beautiful? (Answer: four things.)

This original question was: Are fonts rendered more beautifully with LaTeX than with other systems, such as Word? The larger question really is: Beyond overall document layout, what specifically ...
6
votes
0answers
277 views

Spacing, delimiter, and Libertinus Math

The issue is possibly going to be reviewed once the version of TeX Live has been installed. I would like to have a command that stretches the common delimiters according to the content. The standard \...
1
vote
1answer
261 views

Proper kerning of \{f\} \sigma_0 in TeX Gyre Termes Math

Continuing https://chat.stackexchange.com/rooms/97632/discussion-between-marcel-kruger-and-mdayq6, running lualatex on \documentclass{article} \usepackage{fontspec} \usepackage{unicode-math} % \...
2
votes
1answer
172 views

>{\kern-\tabcolsep} does not work in p-columns

If you colourise a row in a table, @{} does not remove the colour from the side bearings, as demonstrated in below figure. To remove the colour, you may direct a kern into the table column using >{...

1
2 3 4 5
7