Hey list,
I'm trying to clean up the above function somewhat and wonder about a few things:

```
scaler.face = face; scaler.x_scale = size->metrics.x_scale; scaler.x_delta = 0; /* XXX: TODO: add support for sub-pixel hinting */ scaler.y_scale = size->metrics.y_scale; scaler.y_delta = 0; /* XXX: TODO: add support for sub-pixel hinting */


scaler.render_mode = FT_LOAD_TARGET_MODE( load_flags );
    scaler.flags       = 0;  /* XXX: fix this */
```

What exactly is this subpixel hinting and what is needed to support it? What about the flags needs to be fixed?

```
#ifdef FT_OPTION_AUTOFIT2 /* XXX: undocumented hook to activate the latin2 writing system */ if ( load_flags & ( 1UL << 20 ) ) options = AF_STYLE_LTN2_DFLT;
#endif
```

Is this used in any capacity?

```
/* for mono-width fonts (like Andale, Courier, etc.) we need */ /* to keep the original rounded advance width; ditto for */
            /* digits if all have the same advance width                 */
[...]
```

Why is this ifdef'ed out? Why is the second block below that ifdef'ed out? Can they be removed?

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

Reply via email to