satori 0.31.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>
@@ -297,6 +298,12 @@ Satori uses the same Flexbox [layout engine](https://yogalayout.com) as React Na
297
298
  <td></td>
298
299
  </tr>
299
300
 
301
+ <tr>
302
+ <td colspan="2"><code>backdropFilter</code></td>
303
+ <td>Supports chained <code>blur()</code>, <code>brightness()</code>, <code>contrast()</code>, <code>drop-shadow()</code>, <code>grayscale()</code>, <code>hue-rotate()</code>, <code>invert()</code>, <code>opacity()</code>, <code>saturate()</code>, and <code>sepia()</code></td>
304
+ <td></td>
305
+ </tr>
306
+
300
307
  <tr>
301
308
  <td colspan="2"><code>clipPath</code></td>
302
309
  <td>Supports <code>circle()</code>, <code>ellipse()</code>, <code>inset()</code>, <code>polygon()</code>, <code>path()</code>, and <code>shape()</code>. <code>shape()</code> supports <code>move</code>, <code>line</code>, <code>hline</code>, <code>vline</code>, <code>curve</code>, <code>smooth</code>, <code>arc</code>, and <code>close</code> commands.</td>
@@ -340,9 +347,24 @@ Note:
340
347
 
341
348
  ### Language and Typography
342
349
 
343
- 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
357
+
358
+ Example:
359
+ ```jsx
360
+ <div style={{ fontFeatureSettings: '"smcp" 1, "liga" 0' }}>
361
+ This Text Uses Small Caps
362
+ </div>
363
+ ```
344
364
 
345
- RTL languages are not supported either.
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.
346
368
 
347
369
  #### Fonts
348
370