- Fix
SectionText::scale
docs. - Improve
SectionGlyph
docs.
- Default layouts: Keep word trailing space width if ending in a hard break or end of all glyphs e.g.
"Foo \n"
(This particularly changes the layout of right & centre aligned text ending in spaces).
- Update approx to
0.5
.
- Update approx to
0.4
. - Update xi-unicode to
0.3
.
- Rework crate switching from rusttype to ab_glyph.
- Layout returns
SectionGlyph
s which containsection_index
& stringbyte_index
. - Drop support for
Color
which didn't affect layout & can now be associated to sections without built-in support. - Glyph bounding boxes are no longer used at all during layout. This means invisible glyphs, like
' '
, are now generally included.
- Layout returns
- Fix consistency of section bounds by removing usage of glyph pixel bounds during word layout, instead always relying on advance-width.
- Fix possible floating point errors when using section bounds that exactly bound the section.
- Update rusttype to
0.8
. Compatible with rusttype0.6.5
&0.7.9
.
- Update xi-unicode to
0.2
.
- Fix missing line breaks for multi-byte breaking chars like Chinese characters.
- Add
GlyphPositioner::recalculate_glyphs
with a default unoptimised implementation. Custom layouts won't be broken by this change, but will need to implement the new function to provide optimised behaviour. - Optimise built-in layout's recalculate_glyphs for screen position changes with
GlyphChange::Geometry
. - Optimise built-in layout's recalculate_glyphs for single color changes with
GlyphChange::Color
. - Optimise built-in layout's recalculate_glyphs for alpha changes with
GlyphChange::Alpha
. - Optimise layout re-positioning with
PositionedGlyph::set_position
usage.
- Implement
PartialEq
forSectionGeometry
&SectionText
.
- Implement
FontMap
forAsRef<[Font]>
instead ofIndex<usize, Output = Font>
to support arrays and slices. If this breaks your usage try implementingFontMap
directly.
- Fix single-line vertical alignment y-adjustment for center & bottom.
- Re-export
rusttype::point
. - Fix
bounds_rect
implementation for somef32::INFINITY
cases. - Handle zero & negative scale cases.
- Initial release.