svg-ultralight 0.52.1__py3-none-any.whl → 0.52.2__py3-none-any.whl
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.
Potentially problematic release.
This version of svg-ultralight might be problematic. Click here for more details.
- svg_ultralight/bounding_boxes/type_padded_text.py +1 -2
- svg_ultralight/font_tools/font_info.py +2 -4
- {svg_ultralight-0.52.1.dist-info → svg_ultralight-0.52.2.dist-info}/METADATA +1 -1
- {svg_ultralight-0.52.1.dist-info → svg_ultralight-0.52.2.dist-info}/RECORD +5 -5
- {svg_ultralight-0.52.1.dist-info → svg_ultralight-0.52.2.dist-info}/WHEEL +0 -0
|
@@ -64,7 +64,6 @@ enough to lay out text on a business card.
|
|
|
64
64
|
|
|
65
65
|
from __future__ import annotations
|
|
66
66
|
|
|
67
|
-
import copy
|
|
68
67
|
import math
|
|
69
68
|
from typing import TYPE_CHECKING
|
|
70
69
|
|
|
@@ -113,7 +112,7 @@ class PaddedText(BoundElement):
|
|
|
113
112
|
:param lpad: Left padding.
|
|
114
113
|
"""
|
|
115
114
|
self.elem = elem
|
|
116
|
-
self.unpadded_bbox =
|
|
115
|
+
self.unpadded_bbox = bbox
|
|
117
116
|
self.base_tpad = tpad
|
|
118
117
|
self.rpad = rpad
|
|
119
118
|
self.base_bpad = bpad
|
|
@@ -427,10 +427,9 @@ class FTFontInfo:
|
|
|
427
427
|
min_x, min_y, max_x, max_y = self.get_char_bounds(char)
|
|
428
428
|
return BoundingBox(
|
|
429
429
|
min_x,
|
|
430
|
-
|
|
430
|
+
-max_y,
|
|
431
431
|
max_x - min_x,
|
|
432
432
|
max_y - min_y,
|
|
433
|
-
transformation=(1, 0, 0, -1, 0, 0),
|
|
434
433
|
)
|
|
435
434
|
|
|
436
435
|
def get_text_bounds(self, text: str) -> tuple[int, int, int, int]:
|
|
@@ -492,10 +491,9 @@ class FTFontInfo:
|
|
|
492
491
|
min_x, min_y, max_x, max_y = self.get_text_bounds(text)
|
|
493
492
|
return BoundingBox(
|
|
494
493
|
min_x,
|
|
495
|
-
|
|
494
|
+
-max_y,
|
|
496
495
|
max_x - min_x,
|
|
497
496
|
max_y - min_y,
|
|
498
|
-
transformation=(1, 0, 0, -1, 0, 0),
|
|
499
497
|
)
|
|
500
498
|
|
|
501
499
|
def get_lsb(self, char: str) -> float:
|
|
@@ -8,12 +8,12 @@ svg_ultralight/bounding_boxes/supports_bounds.py,sha256=8rIklGICIx-DXELN7FjDwrzO
|
|
|
8
8
|
svg_ultralight/bounding_boxes/type_bound_collection.py,sha256=ct8BLjqyHSCNhOGG0eYuubdOajI2KVo1nbTP3JxXZ00,2756
|
|
9
9
|
svg_ultralight/bounding_boxes/type_bound_element.py,sha256=gXsHCSJ6lxIGODm1oJ5yYAPzuIi7NkBIIzD_GX-cgo8,2322
|
|
10
10
|
svg_ultralight/bounding_boxes/type_bounding_box.py,sha256=r3XcdW_U8VvRauylw54aMwPsmC6A3HY72rz_sTcd1Uo,13359
|
|
11
|
-
svg_ultralight/bounding_boxes/type_padded_text.py,sha256=
|
|
11
|
+
svg_ultralight/bounding_boxes/type_padded_text.py,sha256=WFpz9ebHn3NIMdqO3-Qowbvq0w227jNKW6y_Y6Usg-g,14717
|
|
12
12
|
svg_ultralight/constructors/__init__.py,sha256=fb-A50G3YTZNMQXpxcCl_QAcfssS0Us065_kdJRybDQ,313
|
|
13
13
|
svg_ultralight/constructors/new_element.py,sha256=hVQG7WBHQoTUmGiZNtVadGOitdTFBrHOQeVKKVOWGaA,3526
|
|
14
14
|
svg_ultralight/font_tools/__init__.py,sha256=b_VSvk5aODzS2wv48EMU2sey_mxq1o1SL8ecWTdy4kc,78
|
|
15
15
|
svg_ultralight/font_tools/comp_results.py,sha256=KR6RtVGWjGGfHX2d_-XRx_Jr9CQ36kPbQxLVK1yzgTI,10421
|
|
16
|
-
svg_ultralight/font_tools/font_info.py,sha256=
|
|
16
|
+
svg_ultralight/font_tools/font_info.py,sha256=g1jk-HpFDCTYCmYAd1TEWxI6IXdRRuqmnDJmlrRB6Wc,29427
|
|
17
17
|
svg_ultralight/image_ops.py,sha256=cwR038ECUuiceIrk-9Peh5Ijp4tzjuaV5Y1cvYOt4TI,5454
|
|
18
18
|
svg_ultralight/inkscape.py,sha256=_aQ42ZQ1JP9TFdHmtxgCRsXvxfZPpdZWTGKEea9BgIU,9336
|
|
19
19
|
svg_ultralight/layout.py,sha256=yiTAYtSsYywdCObIdjkK3A4fiEYLNPqD3BOQKxfj6gQ,12514
|
|
@@ -29,6 +29,6 @@ svg_ultralight/strings/__init__.py,sha256=iaRwr9AF9bPDkG3XvgGRSf8JPAS2GQ8ds9yCNp
|
|
|
29
29
|
svg_ultralight/strings/svg_strings.py,sha256=XlXQ5RqueGrROXBI4VzR2cK7e1NdNhYx5S84bgyqFUQ,3132
|
|
30
30
|
svg_ultralight/transformations.py,sha256=YyhehH0Hlui2U9t7hjwgHgRyHzUR7UCMSSo-G85J-bo,4784
|
|
31
31
|
svg_ultralight/unit_conversion.py,sha256=Y32GZ5TLkvjDHM2kBw52M8ZxDNlpVSlDkSdRa1S_X-A,8985
|
|
32
|
-
svg_ultralight-0.52.
|
|
33
|
-
svg_ultralight-0.52.
|
|
34
|
-
svg_ultralight-0.52.
|
|
32
|
+
svg_ultralight-0.52.2.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
|
|
33
|
+
svg_ultralight-0.52.2.dist-info/METADATA,sha256=Tz4ruLeLwFv4s8U45JbguDMPdliUwOkEXWKhaLb7Iww,8691
|
|
34
|
+
svg_ultralight-0.52.2.dist-info/RECORD,,
|
|
File without changes
|