Module edges

Source
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.