You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [unreleased]
9
9
10
-
### Fixed
11
-
- Fixed SVG rendering with custom font files being embedded. It was not working because a wrong SVG tag was being used.
12
-
13
10
### Added
14
11
15
12
- Added comprehensive type annotations and mypy static type checking integration
16
13
-**NamedColor Enum**: Exposed `NamedColor` enum class to improve developer experience when using colors. The enum provides easy access to all supported named colors with autocompletion and type safety.
14
+
-**Text Shaping Support**: Added advanced text shaping capabilities including kerning, ligatures, and proper complex script rendering (Arabic, emoji sequences). Text now renders with correct character connections and spacing adjustments.
15
+
16
+
### Fixed
17
+
18
+
- Fixed SVG rendering with custom font files being embedded. It was not working because a wrong SVG tag was being used.
19
+
- Fixed SVG font family normalization by removing spaces and commas from font identifiers to prevent rendering issues.
20
+
- Fixed text wrapping when no width constraint is specified, avoiding unnecessary wrap calculations.
`FontWeight` can be an enum member (e.g., `FontWeight.BOLD`) or an integer from 100 to 900.
90
90
91
+
## Text Shaping
92
+
93
+
`PicTex` includes advanced text shaping capabilities that improve text rendering quality through kerning, ligatures, and complex script support. This feature is automatically enabled and works behind the scenes to provide professional typography.
94
+
95
+
### Kerning
96
+
97
+
Kerning automatically adjusts the spacing between specific character pairs for better visual balance. For example, characters like "AV", "TY", or "Wo" will have optimized spacing.
98
+
99
+
### Ligatures
100
+
101
+
When using fonts that support ligatures, character sequences are automatically replaced with single, specially designed glyphs for improved readability.
`PicTex` fully supports multi-line text using newline characters (`\n`). Additionally, text can automatically wrap when placed in containers with fixed widths.
0 commit comments