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
2 votes
1 answer
36 views

Expanded Letter Space Kerning Algorithm Not Working with French Accents

Consider the code \documentclass{book} \usepackage{xcolor} \usepackage{scalerel} \usepackage{scalefnt} % Spaceout Algorithm \def\theLetterSpace{0.5pt} \def\theWordSpace{1.5\LocalLetterSpace} \...
  • 5,839
1 vote
0 answers
27 views

Italic maths in italic text, inconsistent spacing?

Consider the following example \documentclass{article} %\usepackage{lua-visual-debug} \begin{document} \Huge \textit{I I $I$ I I} %\showlists \end{document} It produces five italic ...
2 votes
2 answers
42 views

How can I consistently adjust kerning within and outside of subscripts?

I want to define a macro that shows an array access in a language like in C or Java. My first try looked like this: \newcommand{\accessI}[2]{#1\left[#2\right]} \[ \accessI{a}{i} \] I didn't like this ...
0 votes
0 answers
43 views

bad kerning in date using fontspec with beamer

I'm trying to use fontspec withbeamer. The kerning in the date on the title slide is extremely bad (the "r" and the "d" in "Stanford" are completely overlapping): Here ...
0 votes
0 answers
50 views

How do I define a macro that depends on the height of an argument?

I'd like to write a macro that surrounds an argument with two round parentheses which are correctly sized to the argument. Currently I'm using the following macro, \newcommand{\inpl}[1]{{\left(\kern-....
1 vote
1 answer
39 views

Reduce the space between letter "f" and subscript that follows for Asana-Math (unicode-math)

Following the second part of this answer, I'm trying to do the similar thing for Asana-Math: reducing the space between letter "f" and the subscript that follows. However, my modified ...
  • 6,875
3 votes
0 answers
39 views

Minor adjustment to math font kerning with unicode-math

I would like to use KpMath as my main math font, but also to use the letters and numbers from usual Palatino to match my main text. For this purpose, I replaced the letters and numbers from the font ...
  • 6,875
0 votes
0 answers
34 views

Excessive space after italicized abbreviation

I often encounter the appearance of excessive space after an italicized abbreviation. In the example below, the first block of text yields too much space between the italicized abbreviation 2 Clem. ...
0 votes
1 answer
42 views

How to globally redefine kerning of \prime only when it encounters a left delimiter in math mode?

Here's my MWE: % !TEX program = lualatex \documentclass[preview,border={5mm 2.5mm 5mm 0mm},varwidth]{standalone} \usepackage{mathtools} \usepackage[warnings-off={mathtools-colon,mathtools-overbracket}]...
1 vote
1 answer
45 views

Kerning for German «Guillemets» automatically input by csquotes

Kindly consider this MWE: %!TeX program = lualatex \documentclass{article} \usepackage[shorthands=off,main=ngerman,english]{babel} \usepackage{cochineal} \usepackage[german = guillemets]{csquotes} ...
  • 5,955
3 votes
2 answers
396 views

Why does LaTeX neither break at nor hyphenate after a "user kern"?

When using the \kern command for user-defined kerns or the \, shorthand for small non-breaking spaces, this expands to a "userkern" node. At such nodes LaTeX doesn't break the line and the ...
  • 380
7 votes
1 answer
237 views

Is there a way to add italic correction at the end of inline math?

I would like to add italic correction at the end of inline math, depending on the italic correction of the last math character. Here is a MWE showing why I would like to have that: %! TEX program = ...
5 votes
1 answer
150 views

How do I get italic correction in LuaLaTex with unicode-math and \left \right?

The story about italic correction in LuaLaTeX when using unicode-math seems to be an old one. However, the issue does not appear to be fixed. Here is what it looks like with unicode-math and without ...
1 vote
1 answer
70 views

How to Produce a Vertical Kerning for a Psvectorian Image

This post is an extension of How to Fill a Psvectorian Ornament with Color The following code produces two images: the first with a horizontal kerning of 0.35pt; the second, with an attempted vertical ...
1 vote
1 answer
66 views

How to Adjust the Kerning Between the Letters in a Title (Is It Possible with PdfLatex?) [duplicate]

Consider the code \documentclass{book} \usepackage{scalerel} % For Vertical Stretch of Letters \usepackage{scalefnt} \usepackage{pgothic} \begin{document} \thispagestyle{empty} \vskip 35pt \begin{...
  • 5,839
1 vote
1 answer
41 views

How to Adjust the Kerning to the Left of a Cabin Font Apostrophe within a Pspicture

Consider the following code which is run with XeLaTeX: \documentclass[a5paper,12pt,onecolumn,openany,final]{book} \usepackage[hmargin=0.7in,vmargin=0.75in]{geometry} \usepackage{pstricks,psvectorian} \...
  • 5,839
2 votes
0 answers
60 views

Add kern-font-feature so that it applies to a combination of italic and regular letter-combination

I would like to add the kern-font-feature to two fonts so that it covers certain italic and regular glyphe-combinations between the two of them. I have succeeded in adding them to the regular and ...
  • 626
4 votes
1 answer
52 views

Custom kerning pair with \XeTeXinterchartoks does not work with Polyglossia when Latin set as the main language

What I tried: Create (the usually missing) custom kerning pair "QV" for Latin. What I expected: custom kerning pairs to work with all languages. What I got instead: kerning does not change ...
1 vote
0 answers
32 views

Increase horizontal spacing of (all) superscripts

I am using a TrueType font with XeLaTeX and unicode-math, and I noticed that, because italic letters are very slanted, in math formulas superscripts are too close, sometimes they touch the letter. The ...
  • 475
1 vote
0 answers
41 views

How to increase letter spacing when using unicode-math range feature?

Using the package unicode-math and compiling with xelatex, one may use \setmathfont[range= ... ,Scale=MatchLowercase]{ ... } to change the italic and upright math letters. However, there are usually ...
  • 87
4 votes
1 answer
281 views

Kerning when coloring single letters

When I manually colorize the capitals of words the kerning breaks. Is there a way to preserve this without manually adding in negative spaces? {\color{red}W}{onder} Wonder
  • 303
1 vote
1 answer
45 views

Diacritics and font changing commands

See the following code. %!TeX Program = lualatex \documentclass{article} \usepackage{fontspec} \newfontfamily\cmuserif{CMU-serif} \newfontfamily\charissil{CharisSIL} \begin{document} \begin{tabular}{...
  • 2,423
0 votes
1 answer
54 views

Protect phrase from kerning

I have the following problem in my thesis. Throughout the phrase "conf" appears in subscript in many equations, which is short for configuration. Thus the letters should be evenly spaced, ...
  • 259
2 votes
3 answers
280 views

Lato font not separating letters ft and ti

I am using the Lato font for a document, but whenever the letters "ft" and "ti" are next to eachother, this font cannot separate the characters. When doing a copy-paste of the word ...
4 votes
0 answers
100 views

Lua font handler can change some STIX Two Math kerns but not others

The STIX Two Math font leaves large gaps between some pairs of characters, such as 'dp' or 'df'. The Lua otf font handler is able to reduce these gaps for some pairs (e.g., 'ab' or 'ad'), but it ...
  • 2,166
2 votes
0 answers
43 views

Add some extra kerning behind letters in math mode in beamer metropolis

This is MWE: % !TEX program = xelatex \documentclass{beamer} \usetheme[numbering=fraction,block=fill]{metropolis} \setsansfont{Fira Sans Book}[BoldFont=Fira Sans SemiBold,Scale=0.95] \usepackage{bm} \...
  • 115
0 votes
1 answer
62 views

ConTeXt: \someline breaks kerning rules of font

I found out that \someline (for getting a reference to the line number) breaks the kerning of the font. For example, I want to adjust the kerning between the characters "," and "1",...
  • 1
0 votes
0 answers
47 views

What is the relationship between kerning in TeX and kerning in a font?

Fonts in TTF or OTF often have kerning tables which can be accessed by a typesetting program that is using the font. What is the relationship between these font-specific kerning tables and automatic ...
3 votes
2 answers
200 views

Minion 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 ' ...
  • 5,693
3 votes
1 answer
60 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?
  • 33
2 votes
1 answer
52 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
1 answer
116 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 ...
  • 33
0 votes
0 answers
251 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
1 answer
76 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 ...
  • 680
7 votes
2 answers
492 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
1 answer
146 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
1 answer
93 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 ...
  • 9,348
4 votes
2 answers
149 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 "...
  • 894
0 votes
0 answers
86 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
1 answer
90 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 ...
  • 5,172
1 vote
1 answer
54 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. ...
  • 35
1 vote
1 answer
77 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-...
  • 271
2 votes
3 answers
313 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 ...
4 votes
1 answer
134 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. ...
  • 271
7 votes
1 answer
464 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 ...
  • 874
3 votes
1 answer
94 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
1 answer
57 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
1 answer
110 views

Having asterisk above and not inline in code listings [duplicate]

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{...
  • 133
1 vote
1 answer
102 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 ...
  • 909
4 votes
2 answers
87 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 ...
  • 317

1
2 3 4 5
8