freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft-devel] Clean-up of af_loader_load_glyph()


From: Nikolaus Waxweiler
Subject: [ft-devel] Clean-up of af_loader_load_glyph()
Date: Sun, 23 Oct 2016 22:53:24 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

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?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]