svg-ultralight 0.52.2__tar.gz → 0.52.3__tar.gz
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-0.52.2 → svg_ultralight-0.52.3}/PKG-INFO +1 -1
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/pyproject.toml +2 -2
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/font_tools/font_info.py +3 -13
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/README.md +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/__init__.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/animate.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/attrib_hints.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/bounding_boxes/__init__.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/bounding_boxes/bound_helpers.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/bounding_boxes/padded_text_initializers.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/bounding_boxes/supports_bounds.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/bounding_boxes/type_bound_collection.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/bounding_boxes/type_bound_element.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/bounding_boxes/type_bounding_box.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/bounding_boxes/type_padded_text.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/constructors/__init__.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/constructors/new_element.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/font_tools/__init__.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/font_tools/comp_results.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/image_ops.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/inkscape.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/layout.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/main.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/metadata.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/nsmap.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/py.typed +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/query.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/read_svg.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/root_elements.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/string_conversion.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/strings/__init__.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/strings/svg_strings.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/transformations.py +0 -0
- {svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/unit_conversion.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "svg-ultralight"
|
|
3
|
-
version = "0.52.
|
|
3
|
+
version = "0.52.3"
|
|
4
4
|
description = "a sensible way to create svg files with Python"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "MIT"
|
|
@@ -33,7 +33,7 @@ dev = [
|
|
|
33
33
|
|
|
34
34
|
[tool.commitizen]
|
|
35
35
|
name = "cz_conventional_commits"
|
|
36
|
-
version = "0.52.
|
|
36
|
+
version = "0.52.3"
|
|
37
37
|
tag_format = "$version"
|
|
38
38
|
major-version-zero = true
|
|
39
39
|
version_files = ["pyproject.toml:^version"]
|
|
@@ -425,12 +425,7 @@ class FTFontInfo:
|
|
|
425
425
|
coordinates (+y is down).
|
|
426
426
|
"""
|
|
427
427
|
min_x, min_y, max_x, max_y = self.get_char_bounds(char)
|
|
428
|
-
return BoundingBox(
|
|
429
|
-
min_x,
|
|
430
|
-
-max_y,
|
|
431
|
-
max_x - min_x,
|
|
432
|
-
max_y - min_y,
|
|
433
|
-
)
|
|
428
|
+
return BoundingBox(min_x, -max_y, max_x - min_x, max_y - min_y)
|
|
434
429
|
|
|
435
430
|
def get_text_bounds(self, text: str) -> tuple[int, int, int, int]:
|
|
436
431
|
"""Return bounds of a string as xmin, ymin, xmax, ymax.
|
|
@@ -489,12 +484,7 @@ class FTFontInfo:
|
|
|
489
484
|
coordinates (+y is down).
|
|
490
485
|
"""
|
|
491
486
|
min_x, min_y, max_x, max_y = self.get_text_bounds(text)
|
|
492
|
-
return BoundingBox(
|
|
493
|
-
min_x,
|
|
494
|
-
-max_y,
|
|
495
|
-
max_x - min_x,
|
|
496
|
-
max_y - min_y,
|
|
497
|
-
)
|
|
487
|
+
return BoundingBox(min_x, -max_y, max_x - min_x, max_y - min_y)
|
|
498
488
|
|
|
499
489
|
def get_lsb(self, char: str) -> float:
|
|
500
490
|
"""Return the left side bearing of a character."""
|
|
@@ -577,7 +567,7 @@ class FTTextInfo:
|
|
|
577
567
|
"""
|
|
578
568
|
bbox = self.font.get_text_bbox(self.text)
|
|
579
569
|
bbox.transform(scale=self.scale)
|
|
580
|
-
return bbox
|
|
570
|
+
return BoundingBox(*bbox.values())
|
|
581
571
|
|
|
582
572
|
@property
|
|
583
573
|
def ascent(self) -> float:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/bounding_boxes/__init__.py
RENAMED
|
File without changes
|
{svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/bounding_boxes/bound_helpers.py
RENAMED
|
File without changes
|
|
File without changes
|
{svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/bounding_boxes/supports_bounds.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/constructors/new_element.py
RENAMED
|
File without changes
|
|
File without changes
|
{svg_ultralight-0.52.2 → svg_ultralight-0.52.3}/src/svg_ultralight/font_tools/comp_results.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|