Skip to content

Commit

Permalink
Update changelog, fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
alexheretic committed Apr 12, 2024
1 parent 83eafaf commit 789ea2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions glyph/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Unreleased (0.2.25)
* Add `Font::glyph_svg_image` for accessing glyph svg data.

# 0.2.24
* Add `Font::font_data` for accessing underlying raw font data.

Expand Down
4 changes: 2 additions & 2 deletions glyph/src/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ pub trait Font {
/// To get the largest image use `u16::MAX`.
fn glyph_raster_image2(&self, id: GlyphId, pixel_size: u16) -> Option<v2::GlyphImage>;

/// Returns raw SVG data of a range of glyphs which insludes this one.
/// Returns raw SVG data of a range of glyphs which includes this one.
///
/// Some fonts define their images as SVG rather than a raster format. SVG data here is raw and
/// should be rendered and/or decompressed by the caller, and scaled appropraitely. The SVG file
/// should be rendered and/or decompressed by the caller, and scaled appropriately. The SVG file
/// might include a series of glyphs as nodes.
fn glyph_svg_image(&self, id: GlyphId) -> Option<GlyphSvg> {
_ = id;
Expand Down

0 comments on commit 789ea2b

Please sign in to comment.