[lltx] Problem with slanted fonts

Taco Hoekwater taco at elvenkind.com
Mon Sep 20 11:28:09 CEST 2010


On 09/20/2010 10:23 AM, Ulrike Fischer wrote:
> Am Sun, 19 Sep 2010 19:50:09 +0300 schrieb Khaled Hosny:
>
>
>> How I forgot that! internally, "Lucida Sans", "LucidaSans",
>> "lucidasans", "L U ci DaS anS" all are the same to luaotfload, we will
>> strip spaces and lower case font name before doing matching. So fontspec
>> can just strip the spaces in some way (if not easy in tex, can be done
>> in lua).
>
> Well naturally stripping space is a solution which I already
> mentioned at the begin of the thread. Nevertheless it is interesting
> why it fails for luatex but not with xetex and I think I found the
> reason: \fontname works differently.
>
> In following example xetex returns the fontnames of the system fonts
> surrounded by quotes ("Lucida Sans Regular", "Arial", but cmr10
> without quotes) while luatex/luaoftload returns all fonts without
> quotes: name:Lucida Sans. name:Arial. As during substituation
> \fontname\font is feeded back to a font command luatex now looks due
> to the missing quotes for the font name:Lucida

A simple solution would be to wrap the \fontname returned value in a {}
group before passing it back to \font.

Best wishes,
Taco


More information about the lualatex-dev mailing list