[XeTeX] Cutting a character
Wybo Dekker
wybo at servalys.nl
Sat Apr 10 23:02:08 CEST 2010
This works, but I can imagine more elegant solutions (change white into
red in order to see what actually happens):
\documentclass[12pt]{article}
\usepackage{color,calc}
\newcommand{\half}[1]{%
\setbox0=\hbox{#1}%
\def\bgcolor{white}%
#1\hskip-.5\wd0%
\textcolor{\bgcolor}{%
\raisebox{-.2\ht0-\dp0}{\rule{.5\wd0}{1.4\ht0+\dp0}}}%
}
\begin{document}\Huge
OMIgh\par
\half{O}\half{M}\half{I}\half{g}\half{h}
\end{document}
Mehdi Omidali wrote:
> Hi all,
> Is it possible to construct a box that contains a fraction (say half) of
> a character (horizontal half) of a font.
> Mehdi
--
Wybo
More information about the XeTeX
mailing list