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. ;)


_______________________________________________
Freetype-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to