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
# Summary
This PR:
1. Adds textAlignment support on iOS
2. Applies a minimal NSKernAttributeName to zero-width spaces (\u200B).
- ZWS has zero advance width, NSLayoutManager produces a zero-width
usedRect for ZWS-only lines, which under right/center alignment
collapses the line height. The minimal kerning gives the glyph a
non-zero advance, preserving line geometry while remaining invisible.
## Test Plan
Run example app and play with `textAlignment` when different styles are
toggled.
Check if paragraphs/lists with different `textAlignment` than `left` are
properly parsed and contain `style="text-align:center|right|justify"`
inside HTML
## Screenshots / Videos
https://github.com/user-attachments/assets/cf9be29d-8808-45a9-b5d3-53b6d28fab86
## Compatibility
| OS | Implemented |
| ------- | :---------: |
| iOS | ✅ |
| Android | ❌ |
---------
Co-authored-by: Mikołaj Szydłowski <9szydlowski9@gmail.com>
-`isActive` indicates if the style is active within current selection.
299
300
-`isBlocking` indicates if the style is blocked by other currently active, meaning it can't be toggled.
300
301
-`isConflicting` indicates if the style is in conflict with other currently active styles, meaning toggling it will remove conflicting style.
302
+
-`alignment` indicates the current text alignment of the paragraph at the cursor position. Possible values: `'left'`, `'center'`, `'right'`, `'justify'`.
0 commit comments