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
1 answer
433 views

Xelatex, Minion Pro and Italian apostrophe kerning

I know there are plenty of questions about it but after way too much searching I couldn't find a working fix. Some only work with lualatex, some with \usepackage{MinionPro}, some don't even compile... ...
2 votes
2 answers
59 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 ...
4 votes
3 answers
475 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 ...
19 votes
2 answers
8k views

Change vertical space in overset

How can I decrease the space in overset? I found this solution online, but it doesn't look quite like the original overset (note I know it is difficult to come up with a solution to handle all cases ...
0 votes
0 answers
61 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
79 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 ...
3 votes
0 answers
100 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 ...
0 votes
0 answers
111 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
67 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
106 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} ...
17 votes
1 answer
1k views

Is there a way to improve kerning on mathematics?

It seems that some mathematical formulae do not have as good kerning as standard text? Taking a specific example, I would like to change The version on the left is LaTeX produced from \left(\frac{2\...
3 votes
2 answers
458 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 ...
8 votes
1 answer
428 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
319 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 ...
4 votes
3 answers
1k views

Change kerning for `f'` in math mode

I want to adjust the kerning between f' in math mode (and other pairs) across the entire document. I found https://tex.stackexchange.com/a/219881/54601, which is exactly what I want but for text mode, ...
0 votes
1 answer
136 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
60 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} \...
0 votes
1 answer
203 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{...
1 vote
1 answer
245 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{...
2 votes
0 answers
137 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 ...
4 votes
1 answer
93 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
37 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 ...
1 vote
0 answers
75 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 ...
4 votes
1 answer
293 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
2 votes
3 answers
747 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 ...
1 vote
1 answer
52 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}{...
0 votes
1 answer
57 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, ...
14 votes
2 answers
3k views

How to adjust the kerning around a forward slash in text

In contrast to \texttt{typewriter} normal text is "connected". When using a forward slash, I get for y/. this: while I would like to get something like that: which can be accomplished by y$\!$/$\!$....
4 votes
0 answers
163 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 votes
1 answer
111 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 ...
0 votes
1 answer
77 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",...
2 votes
0 answers
69 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} \...
2 votes
3 answers
470 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 ...
0 votes
0 answers
92 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 ...
17 votes
1 answer
489 views

Properly breaking up ligatures using selnolig / LuaLaTeX

Currently I use the selnolig package together with LuaLaTeX to automatically break up ligatures. This works quite well regarding the fact that ligatures get broken up at the right places. Note however,...
3 votes
1 answer
70 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?
41 votes
3 answers
9k views

Is there a way to adjust kerning for a specific character combination?

Is it possible to tell (La)TeX to adjust the kerning of a specific character combination? For example, suppose I want !! to be typeset as !\kern 1.2pt!, just like ff is automatically turned into a ...
2 votes
1 answer
84 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
164 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
0 answers
504 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
116 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 ...
0 votes
0 answers
101 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 (...
2 votes
1 answer
200 views

How to combine fnpct with offset-adjustable footcite command?

The tufts-book class provides a \sidenote-command with an optional offset parameter, that allows the sidenote to be vertically adjusted. I use biblatex' \footcite command to get citations in the ...
7 votes
2 answers
562 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
216 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 ...
4 votes
2 answers
189 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 "...
3 votes
1 answer
115 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
1 answer
63 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. ...
11 votes
3 answers
2k views

How can I redefine \int to put a negative space after the integral sign, but keep the limits properly set?

I'd like to modify the \int command such that it adds an automatic negative space, e.g. \! after the integral sign. Preferentially, I'd like to be able to not edit any of my code, so cleverly ...
1 vote
1 answer
85 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-...

1
2
3 4 5
8