PositionedGlyph::pixel_bounding_box()size inconsistencies at different positions with identical sub-pixel positions.
CacheBuilderto use methods to allow non-breaking additions in future. New style is
0.7non-breaking main API, while keeping the current version of the gpu_cache module.
From<&AsRef<[u8]>> for SharedBytes.
gpu_cachehashing to improve benchmark performance by ~30%.
gpu_cache::Cache::newin favour of
gpu_cache::Cache::set_position_tolerance. These are now equivalent to recreating the cache as they invalidate the cache keys.
position_tolerancenow have subtly different meanings but guarantee their error in all cases, where previously the worst case was double the set tolerance.
CacheBuilderto construct a
Cachethat makes use of padding.
Font::pair_kerningwork with both characters and glyph ids by having them accept any type that implements the new
IntoGlyphIdtrait. This replaces the
CodepointOrGlyphenum, which didn't seem widely used.
Font::glyphalways return a
Option<Glyph>. Passing a
charthe font doesn't cover returns a
.notdefglyph (id 0), as it did before. Passing an invalid glyph id now panics, like a bad array index: glyph ids should only be used to index the font they were looked up for.
rusttype::Error, which implements
Display, and can be converted to
Result<_, rusttype::Error>to report failures in FontCollection, Font and associated iterators.
Font::from_bytesmethod similar to
FontCollection::from_bytesfor 1 font collections.
Fixed issue #8
Fixed issue #7