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
1 vote
1 answer
28 views

Weird kerning after apostrophe

I want to use the ETbb font in my document, but there is one thing in particular that is weird about it. The spacing after an apostrophe is sometimes too much. I do not know if this is intentional, ...
  • 129
1 vote
0 answers
17 views

Want equal spaces between repeating symbols in mathmode, how I disable kerning? [duplicate]

Trying to get equal spacing between repeating characters in mathmode. I tried using the microtype package and use the DisableLigatures function, it should disable kerning and would expect equal spaces ...
  • 2,240
0 votes
0 answers
23 views

Spacing for typewriter font looks off without fulflexing option in lstlisting [duplicate]

I'm trying to get the spacing and font to look clean in my lstlisting output window. Right now, if I enable the columns=fullflexible option, it makes the font truly monospaced and it perfectly aligns ...
7 votes
2 answers
277 views

Fix Kerning Internal to a Unicode Character

Is there any way to drill down into the code that defines, for example, Ἄ to fix the kerning of the diacritics? It's worse in ebgaramond; it's not very much better in computer modern. \documentclass{...
  • 2,580
1 vote
0 answers
30 views

Looking for Global Solution to Insufficient Apostrophe Kerning with Cabin

In How to Increase the Space Between a Letter and Its Apostrophe with Cabin, it was suggested that in order to increase the kerning between a letter and the adjoining apostrophe, one may use \mbox{'} ...
  • 7,080
7 votes
2 answers
567 views

How to give hints to fix kerning of "Two" in sffamily

Is there any way to improve sffamily kerning globally? (for example in my document preamble; I really don't want to edit font files or system settings) The Tw combination looks awful; Two is even ...
  • 2,664
5 votes
3 answers
279 views

Why does \showbox display kerns in two different ways?

Suppose I \showbox'd the TeX logo and the word "We", thus: \setbox0=\hbox{T\kern-.1667em\lower.5ex\hbox{E}\kern-.125em X We}\showbox0 In the result, there are two different representations ...
1 vote
0 answers
71 views

Lua(La)TeX does not kern at discretionaries following ligatures?

\documentclass{book} \usepackage[usenglish]{babel} \usepackage{fontspec} \directlua{ fonts.handlers.otf.addfeature { name = "testkern", type = "kern", ...
  • 432
1 vote
1 answer
36 views

Wrong spacing with math mode inside sl in plain TeX

Here is a minimal example of a problem I encounter sometimes: {\sl Let $\cal U$ be} \bye In the output U is much closer to "Let" than to "be". Is there an equivalent to the italic ...
user avatar
3 votes
1 answer
162 views

Allow Line Breaking Without Affecting Kerning

I'm trying to get LaTeX to allow a line break after an ellipsis. The problem is that, when I type \allowbreak after \ldots, the kerning between the ellipsis and the next immediate character is messed ...
3 votes
1 answer
62 views

How to change space between all letters?

I want to change the default spacing between all letters in the document to be a little bigger. That is I want to be able to manually choose how far apart all letters should be. Should I change the ...
  • 187
0 votes
1 answer
21 views

How do I adjust kerning in my section macros

How do I insert \textls in my section macros to apply the kerning defined in my \microtype command? \documentclass[12pt]{article} \usepackage{titlesec} \usepackage[tracking = true, letterspace = 100]...
  • 187
2 votes
1 answer
38 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} \...
  • 7,080
1 vote
0 answers
35 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
48 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
50 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
54 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
56 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 ...
  • 7,145
3 votes
0 answers
62 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 ...
  • 7,145
0 votes
0 answers
44 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. ...
  • 15
0 votes
1 answer
52 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
52 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} ...
  • 6,015
3 votes
2 answers
411 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 ...
  • 432
7 votes
1 answer
275 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
198 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
92 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
89 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{...
  • 7,080
1 vote
1 answer
46 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} \...
  • 7,080
2 votes
0 answers
71 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 ...
  • 646
4 votes
1 answer
65 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
36 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 ...
  • 543
1 vote
0 answers
48 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
  • 313
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,476
0 votes
1 answer
56 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
367 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
130 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,206
2 votes
0 answers
49 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
68 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
51 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
211 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,723
3 votes
1 answer
64 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
61 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
124 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
318 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
84 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
512 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
172 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
99 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
162 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

1
2 3 4 5
8