File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1- # Copyright (c) 2021-2023 , Manfred Moitzi
1+ # Copyright (c) 2021-2025 , Manfred Moitzi
22# License: MIT License
33
44import pytest
@@ -77,7 +77,7 @@ def test_measurement_of_plain_text(msp, s):
7777def test_support_for_text_size ():
7878 test_string = "TestString"
7979 doc = ezdxf .new ()
80- doc .styles .add ("OpenSans" , font = "OpenSans.ttf" )
80+ doc .styles .add ("OpenSans" , font = "OpenSans-Regular .ttf" )
8181 text = doc .modelspace ().add_text (
8282 test_string ,
8383 dxfattribs = {
@@ -87,8 +87,7 @@ def test_support_for_text_size():
8787 )
8888 length = len (test_string )
8989 size = text_size (text )
90- # Do not check exact measurements, "arial.ttf" is not available at all
91- # platforms by default!
90+ # Do not check exact measurements!
9291 assert length * 1.0 < size .width < length * 2.0
9392 assert 1.95 < size .cap_height < 2.05
9493 assert size .total_height > size .cap_height
You can’t perform that action at this time.
0 commit comments