satori 0.32.0 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -215,11 +215,12 @@ Satori uses the same Flexbox [layout engine](https://yogalayout.com) as React Na
215
215
  <tr><td><code>justifyContent</code></td><td>Supported</td><td></td></tr>
216
216
  <tr><td><code>gap</code></td><td>Supported</td><td></td></tr>
217
217
 
218
- <tr><td rowspan="5">Font</td></tr>
218
+ <tr><td rowspan="6">Font</td></tr>
219
219
  <tr><td><code>fontFamily</code></td><td>Supported</td><td></td></tr>
220
220
  <tr><td><code>fontSize</code></td><td>Supported</td><td></td></tr>
221
221
  <tr><td><code>fontWeight</code></td><td>Supported</td><td></td></tr>
222
222
  <tr><td><code>fontStyle</code></td><td>Supported</td><td></td></tr>
223
+ <tr><td><code>fontFeatureSettings</code></td><td>Supported via HarfBuzz text shaping. Enables OpenType features like ligatures, small caps, stylistic sets, etc.</td><td></td></tr>
223
224
 
224
225
  <tr><td rowspan="13">Text</td></tr>
225
226
  <tr><td><code>tabSize</code></td><td>Supported</td><td></td></tr>
@@ -346,9 +347,24 @@ Note:
346
347
 
347
348
  ### Language and Typography
348
349
 
349
- Advanced typography features such as kerning, ligatures and other OpenType features are not currently supported.
350
+ **OpenType Features**: Satori supports advanced typography features via HarfBuzz text shaping. Use the `font-feature-settings` CSS property to enable OpenType features such as:
351
+ - Ligatures (`liga`, `dlig`, `hlig`)
352
+ - Small caps (`smcp`, `c2sc`)
353
+ - Stylistic sets (`ss01`-`ss20`)
354
+ - Contextual alternates (`calt`)
355
+ - Swashes (`swsh`, `cswh`)
356
+ - And many more OpenType features
350
357
 
351
- RTL languages are not supported either.
358
+ Example:
359
+ ```jsx
360
+ <div style={{ fontFeatureSettings: '"smcp" 1, "liga" 0' }}>
361
+ This Text Uses Small Caps
362
+ </div>
363
+ ```
364
+
365
+ HarfBuzz also improves glyph shaping for complex scripts such as Arabic. Full
366
+ Unicode bidirectional layout is not yet supported, so mixed LTR and RTL text
367
+ may not follow browser ordering.
352
368
 
353
369
  #### Fonts
354
370