mini-arcade-native-backend 0.4.3__cp39-cp39-win_amd64.whl → 0.4.4__cp39-cp39-win_amd64.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.
- mini_arcade_native_backend/__init__.py +12 -0
- mini_arcade_native_backend/_native.cp39-win_amd64.pyd +0 -0
- {mini_arcade_native_backend-0.4.3.dist-info → mini_arcade_native_backend-0.4.4.dist-info}/METADATA +1 -1
- mini_arcade_native_backend-0.4.4.dist-info/RECORD +6 -0
- mini_arcade_native_backend-0.4.3.dist-info/RECORD +0 -6
- {mini_arcade_native_backend-0.4.3.dist-info → mini_arcade_native_backend-0.4.4.dist-info}/WHEEL +0 -0
- {mini_arcade_native_backend-0.4.3.dist-info → mini_arcade_native_backend-0.4.4.dist-info}/licenses/LICENSE +0 -0
|
@@ -324,3 +324,15 @@ class NativeBackend(Backend):
|
|
|
324
324
|
if path is None:
|
|
325
325
|
raise ValueError("Path must be provided to capture frame.")
|
|
326
326
|
return self._engine.capture_frame(path)
|
|
327
|
+
|
|
328
|
+
def measure_text(self, text: str) -> tuple[int, int]:
|
|
329
|
+
"""
|
|
330
|
+
Measure text size (width, height) in pixels for the active font.
|
|
331
|
+
|
|
332
|
+
Returns (0,0) if no font is loaded (matches draw_text no-op behavior).
|
|
333
|
+
"""
|
|
334
|
+
font_id = (
|
|
335
|
+
self._default_font_id if self._default_font_id is not None else -1
|
|
336
|
+
)
|
|
337
|
+
w, h = self._engine.measure_text(text, font_id)
|
|
338
|
+
return int(w), int(h)
|
|
Binary file
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
mini_arcade_native_backend/__init__.py,sha256=F7grqK1WRo-Of-hW7AJBXSTt0U_omah_13NtPBymE5s,11101
|
|
2
|
+
mini_arcade_native_backend/_native.cp39-win_amd64.pyd,sha256=qDg6KhKHBXoIFUY0y6TUBfE9TJnNO5CmXgvTxdDAsvo,225280
|
|
3
|
+
mini_arcade_native_backend-0.4.4.dist-info/METADATA,sha256=X2xdVGJhP3bTdpchuZuW_kNtRQQF583oTECtJ2OJ34A,10517
|
|
4
|
+
mini_arcade_native_backend-0.4.4.dist-info/WHEEL,sha256=9tsL4JT94eZPTkcS3bNng2riasYJMxXndrO9CxUfJHs,104
|
|
5
|
+
mini_arcade_native_backend-0.4.4.dist-info/licenses/LICENSE,sha256=cZRgTdRJ3YASekMxkGAvylB2nROh4ov228DxAogK3yY,1115
|
|
6
|
+
mini_arcade_native_backend-0.4.4.dist-info/RECORD,,
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
mini_arcade_native_backend/__init__.py,sha256=WqN_5T1kSebFrH3JXrx1JjXO0xxRNOA_kHZjddpfuEs,10658
|
|
2
|
-
mini_arcade_native_backend/_native.cp39-win_amd64.pyd,sha256=m9LXOZrgpDC03hIaNd6HnhJT3bi-plsiOfGB0FE4Xy0,222720
|
|
3
|
-
mini_arcade_native_backend-0.4.3.dist-info/METADATA,sha256=QyzQk63DFSOd3Bf1HVqVJHx40JnJFB1OlYIxsL9y2PA,10517
|
|
4
|
-
mini_arcade_native_backend-0.4.3.dist-info/WHEEL,sha256=9tsL4JT94eZPTkcS3bNng2riasYJMxXndrO9CxUfJHs,104
|
|
5
|
-
mini_arcade_native_backend-0.4.3.dist-info/licenses/LICENSE,sha256=cZRgTdRJ3YASekMxkGAvylB2nROh4ov228DxAogK3yY,1115
|
|
6
|
-
mini_arcade_native_backend-0.4.3.dist-info/RECORD,,
|
{mini_arcade_native_backend-0.4.3.dist-info → mini_arcade_native_backend-0.4.4.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|