[XeTeX] XeTeX/XeLaTeX and bi-color fonts
John Was
john.was at ntlworld.com
Sun Oct 18 11:14:08 CEST 2009
Hi
If all you need to do is to superimpose two pieces of identical text in
different fonts, is there anything to stop you using simple \llap in your
header definition?
If you have the fonts already defined as \fontone and \fonttwo, the text for
your header could go into a simple control sequence:
\def\headertext#1{\fontone#1\llap{\fonttwo#1}}
And when the text for the header is encountered in your document just
surround it with the control sequence:
\headertext{This is the Text for the Headline}
(These commands are in plain TeX but I think they should work in LaTeX.)
The same command \headertext would work anywhere in your document, if you
needed to use the feature elsewhere.
Hope this might at least help towards a solution.
John
----- Original Message -----
From: "Peter Baker" <psb6m at virginia.edu>
To: "Unicode-based TeX for Mac OS X and other platforms" <xetex at tug.org>
Sent: Sunday, October 18, 2009 5:17 AM
Subject: Re: [XeTeX] XeTeX/XeLaTeX and bi-color fonts
> Fr. Michael Gilmary wrote:
>> Alright! this is my last chance....
>>
>> Use this option when loading contour and it seems to work without
>> warnings.
>>
>>
>> \usepackage[xdvi]{contour}
>>
>>
>> Goodnight!
>>
>>
> Thanks very much, Fr. Michael, for the reference and for getting the
> contour package to work properly with XeLaTeX. Unfortunately, it doesn't
> do what I need, which is to print a run of text (e.g. in a header) twice,
> in different fonts (but with identical metrics), with one instance of the
> text exactly on top of the other.
>
> This would enable the use of bi-color fonts like the ones here:
>
> http://www.linotype.com/en/86314/keyword/2-color.html?viewmode=keyword&id=86314&str=2-color&lang=en
>
> I'll hunt around some more among LaTeX packages and see what I can find.
>
> Best wishes,
> Peter
More information about the XeTeX
mailing list