4

I'd like to manipulate how the dotted letters look in the text. You can see an example below: dotted letter

Without changing the font or letter itself, is there a way to do this?

4
  • the best way would be to change the font. If not you could replace each i by a scalable image of a modified i, however this would break any kerns between adjacent letters and the i. Commented Feb 13, 2015 at 14:21
  • The target "i" here would be one specific "i" in the text. Not all of them. In this case replacing it with an image may work but do you think it's a practical solution?
    – tarik
    Commented Feb 13, 2015 at 14:23
  • yes for a single letter it seems perfectly reasonable, just make sure that your image is pdf not a bitmap like png. Commented Feb 13, 2015 at 14:38
  • @DavidCarlisle I would appreciate it if you could give a small example of how to do it.
    – tarik
    Commented Feb 14, 2015 at 13:35

2 Answers 2

4

This clips the bottom bit of the letter and the top bit of the letter and then over-prints them adjusting the height of the top to match the m. The exact amounts to shift will vary depending on the font used.

Here I have included the top of the base along with the dot so the gap is the same the same as the original letter, you could just take the dot but then you would lose serifs at the top of the base. Not an issue here as a sans serif font is used.

If the vertical part of the i is not constant thickness in the font used, you will see the join...

enter image description here

\documentclass{article}

\usepackage{trimclip}
\begin{document}
\def\myi{%
\clipbox{0pt 0pt 0pt {.7\height}}{i}%
\llap{\raisebox{.1em}{\clipbox{0pt {.5\height} 0pt  0pt}{i}}}%
}
\Huge\sffamily

Aim

A\myi m

A\i m

\end{document}
3

This scales the i and superimposes a clipped i so the distance from the stem to the dot is reduced.

\documentclass{article}

\usepackage{trimclip}

\newcommand{\myi}{%
  \leavevmode
  \rlap{\clipbox{0pt {\depth} 0pt 0pt}{\raisebox{\dimexpr1ex-\height}{i}}}%
  \resizebox{\width}{1ex}{i}%
  }

\begin{document}
\Huge\sffamily

Aim A\myi m

\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .