ugcinc-render 1.3.10 → 1.3.11
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/dist/index.js +4 -0
- package/dist/index.mjs +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -358,6 +358,10 @@ function TextElement({ segment, scale = 1 }) {
|
|
|
358
358
|
letterSpacing,
|
|
359
359
|
// Font kerning for proper letter pair spacing (can be toggled)
|
|
360
360
|
fontKerning: kerning ? "normal" : "none",
|
|
361
|
+
// Enable OpenType font features for kerning
|
|
362
|
+
fontFeatureSettings: kerning ? '"kern" 1' : '"kern" 0',
|
|
363
|
+
// Text rendering optimization for better kerning
|
|
364
|
+
textRendering: kerning ? "optimizeLegibility" : "auto",
|
|
361
365
|
// textAlign works for multi-line text within the (possibly auto-width) box
|
|
362
366
|
textAlign: alignment === "justify" ? "justify" : alignment,
|
|
363
367
|
padding: `${paddingTop}px ${paddingRight}px ${paddingBottom}px ${paddingLeft}px`,
|
package/dist/index.mjs
CHANGED
|
@@ -297,6 +297,10 @@ function TextElement({ segment, scale = 1 }) {
|
|
|
297
297
|
letterSpacing,
|
|
298
298
|
// Font kerning for proper letter pair spacing (can be toggled)
|
|
299
299
|
fontKerning: kerning ? "normal" : "none",
|
|
300
|
+
// Enable OpenType font features for kerning
|
|
301
|
+
fontFeatureSettings: kerning ? '"kern" 1' : '"kern" 0',
|
|
302
|
+
// Text rendering optimization for better kerning
|
|
303
|
+
textRendering: kerning ? "optimizeLegibility" : "auto",
|
|
300
304
|
// textAlign works for multi-line text within the (possibly auto-width) box
|
|
301
305
|
textAlign: alignment === "justify" ? "justify" : alignment,
|
|
302
306
|
padding: `${paddingTop}px ${paddingRight}px ${paddingBottom}px ${paddingLeft}px`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ugcinc-render",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.11",
|
|
4
4
|
"description": "Unified rendering package for UGC Inc - shared types, components, and compositions for pixel-perfect client/server rendering",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|