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
2 answers
386 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 ...
user avatar
  • 371
7 votes
1 answer
179 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 = ...
user avatar
5 votes
1 answer
96 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 ...
user avatar
1 vote
1 answer
51 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 ...
user avatar
1 vote
1 answer
43 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{...
user avatar
  • 4,799
1 vote
1 answer
35 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} \...
user avatar
  • 4,799
1 vote
0 answers
50 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 ...
user avatar
  • 616
4 votes
1 answer
42 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 ...
user avatar
1 vote
0 answers
28 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 ...
user avatar
  • 465
0 votes
0 answers
28 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 ...
user avatar
  • 77
4 votes
1 answer
275 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
user avatar
  • 293
1 vote
1 answer
44 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}{...
user avatar
  • 2,203
0 votes
1 answer
49 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, ...
user avatar
  • 259
2 votes
3 answers
163 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 ...
user avatar
4 votes
0 answers
72 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 ...
user avatar
  • 2,054
1 vote
0 answers
35 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} \...
user avatar
  • 105
0 votes
1 answer
61 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",...
user avatar
  • 1
0 votes
0 answers
45 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 ...
user avatar
3 votes
1 answer
148 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 ' ...
user avatar
  • 5,663
3 votes
1 answer
58 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?
user avatar
  • 33
2 votes
1 answer
37 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 \...
user avatar
3 votes
1 answer
103 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 ...
user avatar
  • 33
0 votes
0 answers
163 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 ...
user avatar
0 votes
1 answer
65 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 ...
user avatar
  • 670
7 votes
2 answers
473 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 ...
user avatar
1 vote
1 answer
122 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 ...
user avatar
2 votes
1 answer
87 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 ...
user avatar
  • 9,268
4 votes
2 answers
139 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 "...
user avatar
  • 894
0 votes
0 answers
83 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 (...
user avatar
3 votes
1 answer
83 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 ...
user avatar
  • 5,122
1 vote
1 answer
49 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. ...
user avatar
  • 35
1 vote
1 answer
70 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-...
user avatar
  • 241
2 votes
3 answers
270 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 ...
user avatar
4 votes
1 answer
124 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. ...
user avatar
  • 241
7 votes
1 answer
423 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 ...
user avatar
  • 854
3 votes
1 answer
69 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, ...
user avatar
2 votes
1 answer
55 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 ...
user avatar
0 votes
1 answer
96 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{...
user avatar
  • 133
1 vote
1 answer
83 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 ...
user avatar
  • 909
4 votes
2 answers
83 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 ...
user avatar
  • 317
4 votes
1 answer
120 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 ...
user avatar
  • 2,024
1 vote
0 answers
39 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{...
user avatar
5 votes
2 answers
453 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 ...
user avatar
1 vote
0 answers
41 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 ...
user avatar
  • 427
1 vote
0 answers
90 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{...
user avatar
0 votes
1 answer
55 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 ...
user avatar
  • 597
2 votes
0 answers
120 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 ...
user avatar
1 vote
0 answers
29 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 ...
user avatar
3 votes
1 answer
94 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 \...
user avatar
  • 9,268
1 vote
1 answer
126 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 ...
user avatar
  • 599

1
2 3 4 5
7