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
--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex