Expand description
Edge hinting.
Letβs actually do some grid fitting. Here we align edges to the pixel grid. This is the final step before applying the edge adjustments to the original outline points.
EnumsΒ§
- LinkDir π
FunctionsΒ§
- adjust_
link π - Helper to adjust links based on hinting direction.
- align_
edges_ πto_ blues - Align horizontal edges to blue zones.
- align_
linked_ πedge - Align one stem edge relative to previous stem edge.
- align_
remaining_ πedges - Align serif and single segment edges.
- align_
serif_ πedge - Shift the serif edge by the adjustment made to base edge.
- align_
stem_ πedges - Align stem edges, trying to main relative order of stems in the glyph.
- find_
bounding_ πcompleted_ edges - Returns the indices of the βcompletedβ edges before and after the given edge index.
- hint_
edges π - Main Latin grid-fitting routine.
- hint_
lowercase_ πm - Make sure that lowercase mβs maintain symmetry.
- hint_
normal_ πstem_ cjk - Adjusts both edges of a stem and returns the delta.
- snap_
width π - Snap a scaled width to one of the standard widths.
- stem_
width π - Compute the snapped width of a given stem.