Subtract short fall from target size in glyph assemblies
Previously the short fall was only considered when selecting a pre-made variant glyph and was not propogated to the target size in a glyph assembly.
@ -166,7 +166,7 @@ pub fn stretch_glyph(
|
|||||||
|
|
||||||
// Assemble from parts.
|
// Assemble from parts.
|
||||||
let assembly = construction.assembly.unwrap();
|
let assembly = construction.assembly.unwrap();
|
||||||
assemble(ctx, base, assembly, min_overlap, target, axis)
|
assemble(ctx, base, assembly, min_overlap, short_target, axis)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Assemble a glyph from parts.
|
/// Assemble a glyph from parts.
|
||||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 510 B After Width: | Height: | Size: 506 B |
Before Width: | Height: | Size: 340 B After Width: | Height: | Size: 354 B |
Before Width: | Height: | Size: 506 B After Width: | Height: | Size: 492 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 927 B |
Before Width: | Height: | Size: 989 B After Width: | Height: | Size: 903 B |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 976 B After Width: | Height: | Size: 875 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 954 B |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 818 B After Width: | Height: | Size: 816 B |
Before Width: | Height: | Size: 496 B After Width: | Height: | Size: 526 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 651 B After Width: | Height: | Size: 648 B |
Before Width: | Height: | Size: 882 B After Width: | Height: | Size: 956 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 927 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 420 B After Width: | Height: | Size: 436 B |
Before Width: | Height: | Size: 651 B After Width: | Height: | Size: 648 B |
Before Width: | Height: | Size: 620 B After Width: | Height: | Size: 630 B |