|
From: | Infinality |
Subject: | Re: [ft-devel] New Infinality Release |
Date: | Wed, 19 Dec 2012 22:18:02 -0600 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
You can do this: { "DejaVu Sans", 12, "Regular Class", 'm', 0.95 * 0x10000L }, I think the compiler will get it. See for example src/cff/cffload.c:1362: priv->expansion_factor = (FT_Fixed)( 0.06 * 0x10000L ); src/type1/t1load.c:2091: priv->expansion_factor = (FT_Fixed)( 0.06 * 0x10000L ); src/type1/t1load.c:2092: priv->blue_scale = (FT_Fixed)( 0.039625 * 0x10000L * 1000 );
That's a pretty clever trick, since it happens at compile time (I'm guessing). Should make maintaining it not so bad. ;)
[Prev in Thread] | Current Thread | [Next in Thread] |