# Changelog for `kb-text-layout` All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to the [Haskell Package Versioning Policy](https://pvp.haskell.org/). ## 0.2.0.0 - 2026-11-17 - Require kb-text-shape 0.3. Shaping failures in `prepare`, `prepareStyled`, `measure`, `charAdvances`, `newStyle` and `newStyleWith` now throw its `ShapeException`. A `ContextError` leaves the shaping context unusable, and every `LayoutContext` built over it. - Add `Face`, a font together with variation axis values and OpenType feature overrides. `newStyleWith` makes a style from a face, and `face` makes a plain one from a font. `newStyle` still takes a bare font. - Breaking: `Style.font` is replaced by `Style.face`. Read the font as `style.face.font`. - Fix measuring in the wrong font when the style's font is not on top of the shaping context's font stack. The tail of each shaped text used to take its advances from the font on top. ## 0.1.2.0 - 2026-09-04 - Add `ShapedSpan` for runs with caller-supplied per-codepoint advances. - Add `prepareWithAdvances`, the single-run shortcut for `ShapedSpan`. - Export `charAdvances`. - Replace `MeasuredSegment.graphemeWidths :: [(Int, Float)]` with `graphemes :: [Grapheme]`. - Fix emergency breaks splitting a shaping cluster or a ligature. ## 0.1.0.2 - 2026-08-28 - Keep leading spaces after a hard break and at the start of the text; only fold them after a soft wrap. - Leading indentation no longer counts as stretchable space for justification. ## 0.1.0.1 - 2026-08-16 - Fix missing foldl' import. - Limit min GHC to 9.6 ## 0.1.0.0 - 2026-08-15 Initial release.