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.
@@ -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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: mini-arcade-native-backend
3
- Version: 0.4.3
3
+ Version: 0.4.4
4
4
  Summary: Native SDL2 backend for mini-arcade-core using SDL2 + pybind11.
5
5
  Author-Email: Santiago Rincon <rincores@gmail.com>
6
6
  License: Copyright (c) 2025 Santiago Rincón
@@ -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,,