| 1 | # Change Log |
| 2 | All notable changes to this project will be documented in this file. |
| 3 | |
| 4 | The format is based on [Keep a Changelog](http://keepachangelog.com/) |
| 5 | and this project adheres to [Semantic Versioning](http://semver.org/). |
| 6 | |
| 7 | ## [Unreleased] |
| 8 | |
| 9 | ## [0.25.1] - 2024-11-29 |
| 10 | ### Changed |
| 11 | - Fix some typos and documentation related lints |
| 12 | - Set MSRV in manifest to actual current value (1.63.0) |
| 13 | - Update forge URL for ttf-parser and rustybuzz to harfbuzz org |
| 14 | |
| 15 | ## [0.25.0] - 2024-10-04 |
| 16 | ### Added |
| 17 | - `STAT` table parsing. Thanks to [inferiorhumanorgans](https://github.com/inferiorhumanorgans). |
| 18 | - `UnicodeRanges` internal field is public now. |
| 19 | - `cargo-c` metadata to C API. Thanks to [lu-zero](https://github.com/lu-zero). |
| 20 | |
| 21 | ### Changed |
| 22 | - `Face::is_italic` checks for italic angle as well. |
| 23 | - `Face::italic_angle` returns just a `f32` and not `Option<f32>` now. |
| 24 | - Bump MSRV to 1.59 |
| 25 | |
| 26 | ### Fixed |
| 27 | - Only apply `avar` table to the variation axis being set. |
| 28 | Thanks to [maxmelander](https://github.com/maxmelander). |
| 29 | |
| 30 | ## [0.24.1] - 2024-08-05 |
| 31 | ### Added |
| 32 | - (`glyf`) `glyf::Table::bbox`. Thanks to [LaurenzV](https://github.com/LaurenzV). |
| 33 | |
| 34 | ### Fixed |
| 35 | - (`kerx`) `kerx::SubtablesIter` wasn't updating the current subtable index. |
| 36 | - (`GPOS`) `gpos::AnchorMatrix` allows nullable/optional matrices now. |
| 37 | Thanks to [LaurenzV](https://github.com/LaurenzV). |
| 38 | |
| 39 | ## [0.24.0] - 2024-07-02 |
| 40 | ### Changed |
| 41 | - Make `core_maths` dependency optional. |
| 42 | When building for `no_std` one must enable `no-std-float` build feature now. |
| 43 | |
| 44 | ## [0.23.0] - 2024-07-02 |
| 45 | ### Changed |
| 46 | - Use `core_maths` instead of `libm`. Should simplify the build process. |
| 47 | Thanks to [LaurenzV](https://github.com/LaurenzV). |
| 48 | |
| 49 | ### Removed |
| 50 | - `no-std-float` build flag. Should be handled automatically now. |
| 51 | |
| 52 | ## [0.22.0] - 2024-06-29 |
| 53 | ### Added |
| 54 | - `Face::glyph_phantom_points` |
| 55 | - `hvar::Table::right_side_bearing_offset`. Thanks to [LaurenzV](https://github.com/LaurenzV). |
| 56 | - `vvar::Table::advance_offset`. Thanks to [LaurenzV](https://github.com/LaurenzV). |
| 57 | - `vvar::Table::top_side_bearing_offset`. Thanks to [LaurenzV](https://github.com/LaurenzV). |
| 58 | - `vvar::Table::bottom_side_bearing_offset`. Thanks to [LaurenzV](https://github.com/LaurenzV). |
| 59 | - `vvar::Table::vertical_origin_offset`. Thanks to [LaurenzV](https://github.com/LaurenzV). |
| 60 | - `colr::Table::clip_box`. Thanks to [LaurenzV](https://github.com/LaurenzV). |
| 61 | |
| 62 | ### Changed |
| 63 | - `no_std` build of `ttf-parser` requires `--features=no-std-float` now. |
| 64 | This is because we need trigonometry functions to flatten transforms in `COLR`. |
| 65 | Thanks to [LaurenzV](https://github.com/LaurenzV). |
| 66 | - `colr::Painter` no longer has `push_translate`, `push_scale`, `push_rotate` and `push_skew`. |
| 67 | Only `push_transform` left. |
| 68 | Thanks to [LaurenzV](https://github.com/LaurenzV). |
| 69 | - Split `hvar::Table` into `hvar::Table` and `vvar::Table`. |
| 70 | Previously, we treated both `HVAR` and `VVAR` tables as identical, |
| 71 | but `VVAR` actually has additional fields. |
| 72 | Thanks to [LaurenzV](https://github.com/LaurenzV). |
| 73 | - Rename `hvar::Table::side_bearing_offset` into `hvar::Table::left_side_bearing_offset`. |
| 74 | Thanks to [LaurenzV](https://github.com/LaurenzV). |
| 75 | |
| 76 | ### Fixed |
| 77 | - `Face::glyph_hor_advance` and `Face::glyph_ver_advance` include `gvar`'s phantom points |
| 78 | when `HVAR`/`VVAR` tables are missing. Affects only variable fonts. |
| 79 | - (`CFF`) Allow MoveTo with width commands in nested subroutines. |
| 80 | - `opentype_layout::LookupFlags::mark_attachment_type` parsing. |
| 81 | - (`CFF`) Allow empty charsets in `cff::parse_charset`. |
| 82 | Thanks to [LaurenzV](https://github.com/LaurenzV). |
| 83 | - (`gvar`) Empty sub-glyphs/components is no longer an error. |
| 84 | Thanks to [LaurenzV](https://github.com/LaurenzV). |
| 85 | - (`GSUB`/`GPOS`) Allow `NULL` offsets in `ChainedContextLookup` Format2 subtables. |
| 86 | Thanks to [LaurenzV](https://github.com/LaurenzV). |
| 87 | - `Face::glyph_y_origin` properly handles variable fonts now. |
| 88 | Thanks to [LaurenzV](https://github.com/LaurenzV). |
| 89 | - (`kerx`) Fix `AnchorPoints` parsing. |
| 90 | Thanks to [LaurenzV](https://github.com/LaurenzV). |
| 91 | |
| 92 | ### Removed |
| 93 | - `push_translate`, `push_scale`, `push_rotate` and `push_skew` from `colr::Painter`. |
| 94 | Use `colr::Painter::push_transform` instead. |
| 95 | Thanks to [LaurenzV](https://github.com/LaurenzV). |
| 96 | |
| 97 | ## [0.21.1] - 2024-05-11 |
| 98 | ### Fixed |
| 99 | - Delta set length calculation in variable fonts. |
| 100 | Thanks to [LaurenzV](https://github.com/LaurenzV).<br> |
| 101 | Got broken in the previous version. |
| 102 | |
| 103 | ## [0.21.0] - 2024-05-10 |
| 104 | ### Added |
| 105 | - `COLR` / `CPAL` v1 support. |
| 106 | Thanks to [LaurenzV](https://github.com/LaurenzV). |
| 107 | |
| 108 | ### Changed |
| 109 | - Replace `Face::is_bitmap_embedding_allowed` with `Face::is_outline_embedding_allowed`. |
| 110 | The old one had a bool flag flipped. |
| 111 | Thanks to [Fuzzyzilla](https://github.com/Fuzzyzilla). |
| 112 | - Increase lenience of embed permissions for older OS/2 versions. |
| 113 | Thanks to [Fuzzyzilla](https://github.com/Fuzzyzilla). |
| 114 | - Bump MSRV to 1.51 |
| 115 | |
| 116 | ## [0.20.0] - 2023-10-15 |
| 117 | ### Added |
| 118 | - `COLR` / `CPAL` v0 support. |
| 119 | Thanks to [laurmaedje](https://github.com/laurmaedje). |
| 120 | |
| 121 | ### Changed |
| 122 | - `svg::SvgDocumentsList` returns `svg::SvgDocument` and not just `&[u8]` now. |
| 123 | Thanks to [wjian23](https://github.com/wjian23). |
| 124 | - `Face::set_variation` allows duplicated axes now. |
| 125 | |
| 126 | ## [0.19.2] - 2023-09-13 |
| 127 | ### Added |
| 128 | - `cff::Table::glyph_cid` |
| 129 | |
| 130 | ## [0.19.1] - 2023-06-20 |
| 131 | ### Fixed |
| 132 | - `cff::Table::glyph_width` returns a correct width when subroutines are present. |
| 133 | |
| 134 | ## [0.19.0] - 2023-04-17 |
| 135 | ### Added |
| 136 | - `bdat`, `bloc`, `EBDT` and `EBLC` tables support. |
| 137 | Thanks to [dzamkov](https://github.com/dzamkov). |
| 138 | - `BitmapMono`, `BitmapMonoPacked`, `BitmapGray2`, `BitmapGray2Packed`, `BitmapGray4`, |
| 139 | `BitmapGray4Packed`, `BitmapGray8` and `BitmapPremulBgra32` variants to `RasterImageFormat`. |
| 140 | |
| 141 | ### Fixed |
| 142 | - `CBLC` table parsing. |
| 143 | Thanks to [dzamkov](https://github.com/dzamkov). |
| 144 | |
| 145 | ## [0.18.1] - 2023-01-10 |
| 146 | ### Fixed |
| 147 | - (`MATH`) Handle NULL offsets. |
| 148 | Thanks to [laurmaedje](https://github.com/laurmaedje). |
| 149 | |
| 150 | ## [0.18.0] - 2022-12-25 |
| 151 | ### Added |
| 152 | - `Face::permissions` |
| 153 | - `Face::is_subsetting_allowed` |
| 154 | - `Face::is_bitmap_embedding_allowed` |
| 155 | - `Face::unicode_ranges` |
| 156 | - `os2::Table::permissions` |
| 157 | - `os2::Table::is_subsetting_allowed` |
| 158 | - `os2::Table::is_bitmap_embedding_allowed` |
| 159 | - `os2::Table::unicode_ranges` |
| 160 | - `name::Name::language` |
| 161 | - `Language` enum with all Windows languages. |
| 162 | |
| 163 | ### Changed |
| 164 | - Using a non-zero index in `Face::parse` for a regular font will return |
| 165 | `FaceParsingError::FaceIndexOutOfBounds` now. Thanks to [Pietrek14](https://github.com/Pietrek14). |
| 166 | |
| 167 | ## [0.17.0] - 2022-09-28 |
| 168 | ### Added |
| 169 | - `MATH` table support. Thanks to [ruifengx](https://github.com/ruifengx) |
| 170 | and [laurmaedje](https://github.com/laurmaedje). |
| 171 | |
| 172 | ### Fixed |
| 173 | - (CFF) Fix large tables parsing. |
| 174 | |
| 175 | ## [0.16.0] - 2022-09-18 |
| 176 | ### Added |
| 177 | - CFF Encoding support. |
| 178 | - `cff::Table::glyph_index` |
| 179 | - `cff::Table::glyph_index_by_name` |
| 180 | - `cff::Table::glyph_width` |
| 181 | - `cff::Table::number_of_glyphs` |
| 182 | - `cff::Table::matrix` |
| 183 | - `post::Table::glyph_name` |
| 184 | - `post::Table::glyph_index_by_name` |
| 185 | - `post::Table::names` |
| 186 | - `Face::glyph_index_by_name` |
| 187 | - `RawFace` fields and `TableRecord` struct are public now. |
| 188 | |
| 189 | ### Changed |
| 190 | - `Face::from_slice` was replaced by `Face::parse`. |
| 191 | - `RawFace::from_slice` was replaced by `RawFace::parse`. |
| 192 | - `post::Table::names` is a method and not a field now. |
| 193 | - Use `post::Table::glyph_name` instead of `post::Table::names.get()`. |
| 194 | |
| 195 | ### Fixed |
| 196 | - (hmtx/vmtx) Allow missing additional side bearings. |
| 197 | - (loca) Allow incomplete table. |
| 198 | - Reduce strictness of some table length checks. |
| 199 | - (post) `post::Names::len` was returning a wrong value. Now this method is gone completely. |
| 200 | You can use `post::Table::names().count()` instead. |
| 201 | |
| 202 | ## [0.15.2] - 2022-06-17 |
| 203 | ### Fixed |
| 204 | - Missing advance and side bearing offsets in `HVAR`/`VVAR` is not an error. Simply ignore them. |
| 205 | |
| 206 | ## [0.15.1] - 2022-06-04 |
| 207 | ### Fixed |
| 208 | - (cmap) `cmap::Subtable4::glyph_index` correctly handles malformed glyph offsets now. |
| 209 | - (cmap) `cmap::Subtable4::codepoints` no longer includes `0xFFFF` codepoint. |
| 210 | - (SVG) Fixed table parsing. Thanks to [Shubhamj280](https://github.com/Shubhamj280) |
| 211 | |
| 212 | ## [0.15.0] - 2022-02-20 |
| 213 | ### Added |
| 214 | - `apple-layout` build feature. |
| 215 | - `ankr`, `feat`, `kerx`, `morx` and `trak` tables. |
| 216 | - `kern` AAT subtable format 1. |
| 217 | - `RawFace` |
| 218 | |
| 219 | ### Changed |
| 220 | - The `parser` module is private now again. |
| 221 | |
| 222 | ## [0.14.0] - 2021-12-28 |
| 223 | ### Changed |
| 224 | - (cmap) `cmap::Subtable::glyph_index` and `cmap::Subtable::glyph_variation_index` accept |
| 225 | `u32` instead of `char` now. |
| 226 | - (glyf) ~7% faster outline parsing. |
| 227 | |
| 228 | ## [0.13.4] - 2021-11-23 |
| 229 | ### Fixed |
| 230 | - (CFF) Panic during `seac` resolving. |
| 231 | - (CFF) Stack overflow during `seac` resolving. |
| 232 | |
| 233 | ## [0.13.3] - 2021-11-19 |
| 234 | ### Fixed |
| 235 | - (glyf) Endless loop during malformed file parsing. |
| 236 | |
| 237 | ## [0.13.2] - 2021-10-28 |
| 238 | ### Added |
| 239 | - `gvar-alloc` build feature that unlocks `gvar` table limits by using heap. |
| 240 | Thanks to [OrionNebula](https://github.com/OrionNebula) |
| 241 | |
| 242 | ## [0.13.1] - 2021-10-27 |
| 243 | ### Fixed |
| 244 | - `Face::line_gap` logic. |
| 245 | |
| 246 | ## [0.13.0] - 2021-10-24 |
| 247 | ### Added |
| 248 | - Complete GSUB and GPOS tables support. Available under the `opentype-layout` feature. |
| 249 | - Public access to all supported TrueType tables. This allows a low-level, but still safe, |
| 250 | access to internal data layout, which can be used for performance optimization, like caching. |
| 251 | - `Style` enum and `Face::style` method. |
| 252 | - `Face::glyph_name` can be disabled via the `glyph-names` feature to reduce binary size. |
| 253 | |
| 254 | ### Changed |
| 255 | - Improved ascender/descender/line_gap resolving logic. |
| 256 | - `Face` methods: `has_glyph_classes`, `glyph_class`, `glyph_mark_attachment_class`, |
| 257 | `is_mark_glyph` and `glyph_variation_delta` are moved to `gdef::Table`. |
| 258 | - The `Names` struct is no longer an iterator, but a container. |
| 259 | You have to call `into_iter()` manually. |
| 260 | - The `VariationAxes` struct is no longer an iterator, but a container. |
| 261 | You have to call `into_iter()` manually. |
| 262 | - Most of the `Name` struct methods become public fields. |
| 263 | - `Face::units_per_em` no longer returns `Option`. |
| 264 | - (`cmap`) Improved subtable 12 performance. Thanks to [xnuk](https://github.com/xnuk) |
| 265 | |
| 266 | ### Removed |
| 267 | - (c-api) `ttfp_glyph_class`, `ttfp_get_glyph_class`, `ttfp_get_glyph_mark_attachment_class`, |
| 268 | `ttfp_is_mark_glyph`, `ttfp_glyph_variation_delta` and `ttfp_has_table`. |
| 269 | - `TableName` enum and `Face::has_table`. Tables can be access directly now. |
| 270 | - `Face::character_mapping_subtables`. Use `Face::tables().cmap` instead. |
| 271 | - `Face::kerning_subtables`. Use `Face::tables().kern` instead. |
| 272 | |
| 273 | ### Fixed |
| 274 | - `Iterator::count` implementation for `cmap::Subtables`, `name::Names` and `LazyArrayIter32`. |
| 275 | |
| 276 | ## [0.12.3] - 2021-06-27 |
| 277 | ### Changed |
| 278 | - (`glyf`) Always use a calculated bbox. |
| 279 | |
| 280 | ## [0.12.2] - 2021-06-11 |
| 281 | ### Fixed |
| 282 | - `Face::glyph_bounding_box` for variable `glyf`. |
| 283 | - (`glyf`) Do not skip glyphs with zero-sized bbox. |
| 284 | |
| 285 | ## [0.12.1] - 2021-05-24 |
| 286 | ### Added |
| 287 | - Support Format 13 subtables in `cmap::Subtable::is_unicode`. |
| 288 | Thanks to [csmulhern](https://github.com/csmulhern) |
| 289 | - Derive more traits by default. Thanks to [dhardy](https://github.com/dhardy) |
| 290 | |
| 291 | ## [0.12.0] - 2021-02-14 |
| 292 | ### Changed |
| 293 | - `Face::ascender` and `Face::descender` will use |
| 294 | [usWinAscent](https://docs.microsoft.com/en-us/typography/opentype/spec/os2#uswinascent) and |
| 295 | [usWinDescent](https://docs.microsoft.com/en-us/typography/opentype/spec/os2#uswindescent) |
| 296 | when `USE_TYPO_METRICS` flag is not set in `OS/2` table. |
| 297 | Previously, those values were ignored and |
| 298 | [hhea::ascender](https://docs.microsoft.com/en-us/typography/opentype/spec/hhea#ascender) and |
| 299 | [hhea::descender](https://docs.microsoft.com/en-us/typography/opentype/spec/hhea#descender) |
| 300 | were used. Now `hhea` table values will be used only when `OS/2` table is not present. |
| 301 | - `Face::outline_glyph` and `Face::glyph_bounding_box` in case of a `glyf` table |
| 302 | can fallback to a calculated bbox when the embedded bbox is malformed now. |
| 303 | |
| 304 | ## [0.11.0] - 2021-02-04 |
| 305 | ### Added |
| 306 | - `FaceTables`, which allowed to load `Face` not only from a single chunk of data, |
| 307 | but also in a per-table way. Which is useful for WOFF parsing. |
| 308 | No changes to the API. |
| 309 | Thanks to [fschutt](https://github.com/fschutt) |
| 310 | |
| 311 | ## [0.10.1] - 2021-01-21 |
| 312 | ### Changed |
| 313 | - Update a font used for tests. |
| 314 | |
| 315 | ## [0.10.0] - 2021-01-16 |
| 316 | ### Added |
| 317 | - `variable-fonts` build feature. Enabled by default. |
| 318 | By disabling it you can reduce `ttf-parser` binary size overhead almost twice. |
| 319 | |
| 320 | ### Changed |
| 321 | - (`gvar`) Increase the maximum number of variation tuples from 16 to 32. |
| 322 | Increases stack usage and makes `gvar` parsing 10% slower now. |
| 323 | |
| 324 | ### Fixed |
| 325 | - (`CFF`) Fix `seac` processing. Thanks to [wezm](https://github.com/wezm) |
| 326 | |
| 327 | ## [0.9.0] - 2020-12-05 |
| 328 | ### Removed |
| 329 | - `kern` AAT subtable 1 aka `kern::state_machine`. |
| 330 | Mainly because it's useless without a proper shaping. |
| 331 | |
| 332 | ## [0.8.3] - 2020-11-15 |
| 333 | ### Added |
| 334 | - `Face::glyph_variation_delta` |
| 335 | |
| 336 | ### Fixed |
| 337 | - `Iterator::nth` implementation for `cmap::Subtables` and `Names`. |
| 338 | |
| 339 | ## [0.8.2] - 2020-07-31 |
| 340 | ### Added |
| 341 | - `cmap::Subtable::codepoints` |
| 342 | |
| 343 | ### Fixed |
| 344 | - (cmap) Incorrectly returning glyph ID `0` instead of `None` for format 0 |
| 345 | - (cmap) Possible invalid glyph mapping for format 2 |
| 346 | |
| 347 | ## [0.8.1] - 2020-07-29 |
| 348 | ### Added |
| 349 | - `Face::is_monospaced` |
| 350 | - `Face::italic_angle` |
| 351 | - `Face::typographic_ascender` |
| 352 | - `Face::typographic_descender` |
| 353 | - `Face::typographic_line_gap` |
| 354 | - `Face::capital_height` |
| 355 | |
| 356 | ## [0.8.0] - 2020-07-21 |
| 357 | ### Added |
| 358 | - Allow `true` magic. |
| 359 | - `FaceParsingError` |
| 360 | - `NormalizedCoordinate` |
| 361 | - `Face::variation_coordinates` |
| 362 | - `Face::has_non_default_variation_coordinates` |
| 363 | - `Face::glyph_name` can lookup CFF names too. |
| 364 | - `Face::table_data` |
| 365 | - `Face::character_mapping_subtables` |
| 366 | |
| 367 | ### Changed |
| 368 | - (CFF,CFF2) 10% faster parsing. |
| 369 | - `Face::from_slice` returns `Result` now. |
| 370 | - `Name::platform_id` returns `PlatformId` instead of `Option<PlatformId>` now. |
| 371 | - The `cmap` module became public. |
| 372 | |
| 373 | ### Fixed |
| 374 | - `Face::width` parsing. |
| 375 | - Possible u32 overflow on 32-bit platforms during `Face::from_slice`. |
| 376 | - (cmap) `Face::glyph_variation_index` processing when the encoding table has only one glyph. |
| 377 | |
| 378 | ## [0.7.0] - 2020-07-16 |
| 379 | ### Added |
| 380 | - (CFF) CID fonts support. |
| 381 | - (CFF) `seac` support. |
| 382 | - `Font::global_bounding_box` |
| 383 | |
| 384 | ### Changed |
| 385 | - Rename `Font` to `Face`, because this is what it actually is. |
| 386 | - Rename `Font::from_data` to `Font::from_slice` to match serde and other libraries. |
| 387 | - Rename `Name::name_utf8` to `Name::to_string`. |
| 388 | |
| 389 | ### Removed |
| 390 | - `Font::family_name` and `Font::post_script_name`. They were a bit confusing. |
| 391 | Prefer: |
| 392 | ``` |
| 393 | face.names().find(|name| name.name_id() == name_id::FULL_NAME).and_then(|name| name.to_string()) |
| 394 | ``` |
| 395 | |
| 396 | ## [0.6.2] - 2020-07-02 |
| 397 | ### Added |
| 398 | - `Name::is_unicode` |
| 399 | - `Font::family_name` will load names with Windows Symbol encoding now. |
| 400 | |
| 401 | ### Fixed |
| 402 | - `Font::glyph_bounding_box` will apply variation in case of `gvar` fonts. |
| 403 | |
| 404 | ## [0.6.1] - 2020-05-19 |
| 405 | ### Fixed |
| 406 | - (`kern`) Support fonts that ignore the subtable size limit. |
| 407 | |
| 408 | ## [0.6.0] - 2020-05-18 |
| 409 | ### Added |
| 410 | - `sbix`, `CBLC`, `CBDT` and `SVG` tables support. |
| 411 | - `Font::glyph_raster_image` and `Font::glyph_svg_image`. |
| 412 | - `Font::kerning_subtables` with subtable formats 0..3 support. |
| 413 | |
| 414 | ### Changed |
| 415 | - (c-api) The library doesn't allocate `ttfp_font` anymore. All allocations should be |
| 416 | handled by the caller from now. |
| 417 | |
| 418 | ### Removed |
| 419 | - `Font::glyphs_kerning`. Use `Font::kerning_subtables` instead. |
| 420 | - (c-api) `ttfp_create_font` and `ttfp_destroy_font`. |
| 421 | Use `ttfp_font_size_of` + `ttfp_font_init` instead. |
| 422 | ```c |
| 423 | ttfp_font *font = (ttfp_font*)alloca(ttfp_font_size_of()); |
| 424 | ttfp_font_init(font_data, font_data_size, 0, font); |
| 425 | ``` |
| 426 | - Logging support. We haven't used it anyway. |
| 427 | |
| 428 | ### Fixed |
| 429 | - (`gvar`) Integer overflow. |
| 430 | - (`cmap`) Integer overflow during subtable format 2 parsing. |
| 431 | - (`CFF`, `CFF2`) DICT number parsing. |
| 432 | - `Font::glyph_*_advance` will return `None` when glyph ID |
| 433 | is larger than the number of metrics in the table. |
| 434 | - Ignore variation offset in `Font::glyph_*_advance` and `Font::glyph_*_side_bearing` |
| 435 | when `HVAR`/`VVAR` tables are missing. |
| 436 | Previously returned `None` which is incorrect. |
| 437 | |
| 438 | ## [0.5.0] - 2020-03-19 |
| 439 | ### Added |
| 440 | - Variable fonts support. |
| 441 | - C API. |
| 442 | - `gvar`, `CFF2`, `avar`, `fvar`, `HVAR`, `VVAR` and `MVAR` tables support. |
| 443 | - `Font::variation_axes` |
| 444 | - `Font::set_variation` |
| 445 | - `Font::is_variable` |
| 446 | - `Tag` type. |
| 447 | |
| 448 | ### Fixed |
| 449 | - Multiple issues due to arithmetic overflow. |
| 450 | |
| 451 | ## [0.4.0] - 2020-02-24 |
| 452 | |
| 453 | **A major rewrite.** |
| 454 | |
| 455 | ### Added |
| 456 | - `Font::glyph_bounding_box` |
| 457 | - `Font::glyph_name` |
| 458 | - `Font::has_glyph_classes` |
| 459 | - `Font::glyph_class` |
| 460 | - `Font::glyph_mark_attachment_class` |
| 461 | - `Font::is_mark_glyph` |
| 462 | - `Font::glyph_y_origin` |
| 463 | - `Font::vertical_ascender` |
| 464 | - `Font::vertical_descender` |
| 465 | - `Font::vertical_height` |
| 466 | - `Font::vertical_line_gap` |
| 467 | - Optional `log` dependency. |
| 468 | |
| 469 | ### Changed |
| 470 | - `Font::outline_glyph` now accepts `&mut dyn OutlineBuilder` and not `&mut impl OutlineBuilder`. |
| 471 | - `Font::ascender`, `Font::descender` and `Font::line_gap` will check `USE_TYPO_METRICS` |
| 472 | flag in OS/2 table now. |
| 473 | - `glyph_hor_metrics` was split into `glyph_hor_advance` and `glyph_hor_side_bearing`. |
| 474 | - `glyph_ver_metrics` was split into `glyph_ver_advance` and `glyph_ver_side_bearing`. |
| 475 | - `CFFError` is no longer public. |
| 476 | |
| 477 | ### Removed |
| 478 | - `Error` enum. All methods will return `Option<T>` now. |
| 479 | - All `unsafe`. |
| 480 | |
| 481 | ### Fixed |
| 482 | - `glyph_hor_side_bearing` parsing when the number of metrics is less than the total number of glyphs. |
| 483 | - Multiple CFF parsing fixes. The parser is more strict now. |
| 484 | |
| 485 | ## [0.3.0] - 2019-09-26 |
| 486 | ### Added |
| 487 | - `no_std` compatibility. |
| 488 | |
| 489 | ### Changed |
| 490 | - The library has one `unsafe` block now. |
| 491 | - 35% faster `family_name()` method. |
| 492 | - 25% faster `from_data()` method for TrueType fonts. |
| 493 | - The `Name` struct has a new API. Public fields became public functions |
| 494 | and data is parsed on demand and not beforehand. |
| 495 | |
| 496 | ## [0.2.2] - 2019-08-12 |
| 497 | ### Fixed |
| 498 | - Allow format 12 subtables with *Unicode full repertoire* in `cmap`. |
| 499 | |
| 500 | ## [0.2.1] - 2019-08-12 |
| 501 | ### Fixed |
| 502 | - Check that `cmap` subtable encoding is Unicode. |
| 503 | |
| 504 | ## [0.2.0] - 2019-07-10 |
| 505 | ### Added |
| 506 | - CFF support. |
| 507 | - Basic kerning support. |
| 508 | - All `cmap` subtable formats except Mixed Coverage (8) are supported. |
| 509 | - Vertical metrics querying from the `vmtx` table. |
| 510 | - OpenType fonts are allowed now. |
| 511 | |
| 512 | ### Changed |
| 513 | - A major rewrite. TrueType tables are no longer public. |
| 514 | - Use `GlyphId` instead of `u16`. |
| 515 | |
| 516 | ### Removed |
| 517 | - `GDEF` table parsing. |
| 518 | |
| 519 | [Unreleased]: https://github.com/harfbuzz/ttf-parser/compare/v0.25.1...HEAD |
| 520 | [0.25.1]: https://github.com/harfbuzz/ttf-parser/compare/v0.25.0...v0.25.1 |
| 521 | [0.25.0]: https://github.com/harfbuzz/ttf-parser/compare/v0.24.1...v0.25.0 |
| 522 | [0.24.1]: https://github.com/harfbuzz/ttf-parser/compare/v0.24.0...v0.24.1 |
| 523 | [0.24.0]: https://github.com/harfbuzz/ttf-parser/compare/v0.23.0...v0.24.0 |
| 524 | [0.23.0]: https://github.com/harfbuzz/ttf-parser/compare/v0.22.0...v0.23.0 |
| 525 | [0.22.0]: https://github.com/harfbuzz/ttf-parser/compare/v0.21.1...v0.22.0 |
| 526 | [0.21.1]: https://github.com/harfbuzz/ttf-parser/compare/v0.21.0...v0.21.1 |
| 527 | [0.21.0]: https://github.com/harfbuzz/ttf-parser/compare/v0.20.0...v0.21.0 |
| 528 | [0.20.0]: https://github.com/harfbuzz/ttf-parser/compare/v0.19.2...v0.20.0 |
| 529 | [0.19.2]: https://github.com/harfbuzz/ttf-parser/compare/v0.19.1...v0.19.2 |
| 530 | [0.19.1]: https://github.com/harfbuzz/ttf-parser/compare/v0.19.0...v0.19.1 |
| 531 | [0.19.0]: https://github.com/harfbuzz/ttf-parser/compare/v0.18.1...v0.19.0 |
| 532 | [0.18.1]: https://github.com/harfbuzz/ttf-parser/compare/v0.18.0...v0.18.1 |
| 533 | [0.18.0]: https://github.com/harfbuzz/ttf-parser/compare/v0.17.0...v0.18.0 |
| 534 | [0.17.0]: https://github.com/harfbuzz/ttf-parser/compare/v0.16.0...v0.17.0 |
| 535 | [0.16.0]: https://github.com/harfbuzz/ttf-parser/compare/v0.15.2...v0.16.0 |
| 536 | [0.15.2]: https://github.com/harfbuzz/ttf-parser/compare/v0.15.1...v0.15.2 |
| 537 | [0.15.1]: https://github.com/harfbuzz/ttf-parser/compare/v0.15.0...v0.15.1 |
| 538 | [0.15.0]: https://github.com/harfbuzz/ttf-parser/compare/v0.14.0...v0.15.0 |
| 539 | [0.14.0]: https://github.com/harfbuzz/ttf-parser/compare/v0.13.4...v0.14.0 |
| 540 | [0.13.4]: https://github.com/harfbuzz/ttf-parser/compare/v0.13.3...v0.13.4 |
| 541 | [0.13.3]: https://github.com/harfbuzz/ttf-parser/compare/v0.13.2...v0.13.3 |
| 542 | [0.13.2]: https://github.com/harfbuzz/ttf-parser/compare/v0.13.1...v0.13.2 |
| 543 | [0.13.1]: https://github.com/harfbuzz/ttf-parser/compare/v0.13.0...v0.13.1 |
| 544 | [0.13.0]: https://github.com/harfbuzz/ttf-parser/compare/v0.12.3...v0.13.0 |
| 545 | [0.12.3]: https://github.com/harfbuzz/ttf-parser/compare/v0.12.2...v0.12.3 |
| 546 | [0.12.2]: https://github.com/harfbuzz/ttf-parser/compare/v0.12.1...v0.12.2 |
| 547 | [0.12.1]: https://github.com/harfbuzz/ttf-parser/compare/v0.12.0...v0.12.1 |
| 548 | [0.12.0]: https://github.com/harfbuzz/ttf-parser/compare/v0.11.0...v0.12.0 |
| 549 | [0.11.0]: https://github.com/harfbuzz/ttf-parser/compare/v0.10.1...v0.11.0 |
| 550 | [0.10.1]: https://github.com/harfbuzz/ttf-parser/compare/v0.10.0...v0.10.1 |
| 551 | [0.10.0]: https://github.com/harfbuzz/ttf-parser/compare/v0.9.0...v0.10.0 |
| 552 | [0.9.0]: https://github.com/harfbuzz/ttf-parser/compare/v0.8.3...v0.9.0 |
| 553 | [0.8.3]: https://github.com/harfbuzz/ttf-parser/compare/v0.8.2...v0.8.3 |
| 554 | [0.8.2]: https://github.com/harfbuzz/ttf-parser/compare/v0.8.1...v0.8.2 |
| 555 | [0.8.1]: https://github.com/harfbuzz/ttf-parser/compare/v0.8.0...v0.8.1 |
| 556 | [0.8.0]: https://github.com/harfbuzz/ttf-parser/compare/v0.7.0...v0.8.0 |
| 557 | [0.7.0]: https://github.com/harfbuzz/ttf-parser/compare/v0.6.2...v0.7.0 |
| 558 | [0.6.2]: https://github.com/harfbuzz/ttf-parser/compare/v0.6.1...v0.6.2 |
| 559 | [0.6.1]: https://github.com/harfbuzz/ttf-parser/compare/v0.6.0...v0.6.1 |
| 560 | [0.6.0]: https://github.com/harfbuzz/ttf-parser/compare/v0.5.0...v0.6.0 |
| 561 | [0.5.0]: https://github.com/harfbuzz/ttf-parser/compare/v0.4.0...v0.5.0 |
| 562 | [0.4.0]: https://github.com/harfbuzz/ttf-parser/compare/v0.3.0...v0.4.0 |
| 563 | [0.3.0]: https://github.com/harfbuzz/ttf-parser/compare/v0.2.2...v0.3.0 |
| 564 | [0.2.2]: https://github.com/harfbuzz/ttf-parser/compare/v0.2.1...v0.2.2 |
| 565 | [0.2.1]: https://github.com/harfbuzz/ttf-parser/compare/v0.2.0...v0.2.1 |
| 566 | [0.2.0]: https://github.com/harfbuzz/ttf-parser/compare/v0.1.0...v0.2.0 |