[XeTeX] Small Caps?
Jonathan Kew
jonathan_kew at sil.org
Mon Apr 26 00:23:46 CEST 2004
Sorry, looks like I was remembering the wrong sort of values to use.
Try this instead:
\def\tryweight#1{\font\x="Myriad MM:weight=#1" at 12pt \x
\noindent This is a test for Myriad MM: weight=#1\par}
\newdimen\n \n=0.1pt
{\catcode`\p=12 \catcode`\t=12 \gdef\WT#1.#2#3pt{\def\THEWT{#1.#2}}}
\loop
\expandafter\WT\the\n \tryweight{\THEWT}
\ifdim\n<2.5pt \advance\n by 0.1pt \repeat
\bye
Gives me a nice gradual weight change from 0.5 to 2.1.
Apparently giving ATSUI values way outside the expected range can give
odd effects; probably simply arithmetic overflow somewhere rather than
clipping the values to the appropriate min/max.
Jonathan
On 25 Apr 2004, at 9:36 pm, Bruce D'Arcus wrote:
>
> On Apr 24, 2004, at 2:54 PM, Jonathan Kew wrote:
>
>> Sounds like you don't have the font name exactly right. I just took a
>> look on my computer at the office, and it seems there's a space
>> between the face name and "MM". So this works for me:
>>
>> \font\x="Myriad MM:weight=200;width=300" at 10pt \x
>
> I'm noticing what appears to be a bug somewhere. Try this:
>
> \font\myfont="Myriad MM:weight=350;width=200" at 24pt
> \myfont Testing Myriad MM
>
> Now, change the weight setting to, say, 325 (or 300). What happens?
>
> In my case, the weight on output declines dramatically, which doesn't
> seem right.
>
> Bruce
>
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
>
More information about the XeTeX
mailing list