text-shaper 0.1.9 → 0.1.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/README.md +5 -2
- package/dist/hinting/types.d.ts +1 -0
- package/dist/index.js +9 -9
- package/dist/index.js.map +137 -0
- package/dist/raster/outline-decompose.d.ts +1 -8
- package/package.json +1 -1
|
@@ -38,14 +38,7 @@ export declare function validateOutline(path: GlyphPath | null | undefined, allo
|
|
|
38
38
|
* @param flipY Flip Y axis - font coords are Y-up, bitmap is Y-down (default: true)
|
|
39
39
|
*/
|
|
40
40
|
export declare function decomposePath(raster: GrayRaster, path: GlyphPath, scale: number, offsetX?: number, offsetY?: number, flipY?: boolean): void;
|
|
41
|
-
|
|
42
|
-
* Calculate bounding box of path in pixel coordinates
|
|
43
|
-
* @param path Glyph path to measure
|
|
44
|
-
* @param scale Scale factor (font units to pixels)
|
|
45
|
-
* @param flipY Flip Y axis for bitmap coordinates (default: true)
|
|
46
|
-
* @returns Bounding box in pixel coordinates, or null if path has no bounds
|
|
47
|
-
*/
|
|
48
|
-
export declare function getPathBounds(path: GlyphPath, scale: number, flipY?: boolean): {
|
|
41
|
+
export declare function getPathBounds(path: GlyphPath, scale: number, flipY?: boolean, roundToGrid?: boolean): {
|
|
49
42
|
minX: number;
|
|
50
43
|
minY: number;
|
|
51
44
|
maxX: number;
|