def style(): return Textstyle.new('FFFF', dxfattribs={ 'name': 'TEST', 'font': 'NOFONT.ttf', 'width': 2.0, })
def xstyle(): style = Textstyle.new('FFFF', dxfattribs={ 'name': 'OpenSans-BoldItalic', 'font': 'OpenSans-BoldItalic.ttf', }) style.set_xdata('ACAD', [(1000, "Open Sans"), [1071, 50331682]]) return style
def style(): return Textstyle.new( "FFFF", dxfattribs={ "name": "TEST", "font": "NOFONT.ttf", "width": 2.0, }, )
def xstyle(): style = Textstyle.new( "FFFF", dxfattribs={ "name": "OpenSans-BoldItalic", "font": "OpenSans-BoldItalic.ttf", }, ) style.set_xdata("ACAD", [(1000, "Open Sans"), [1071, 50331682]]) return style
def test_malformed_layer(): style = Textstyle.from_text(MALFORMED_STYLE) assert style.dxf.name == "STY_EZDXF" assert style.dxf.handle == "FEFE" assert style.dxf.width == 1.5 assert style.dxf.oblique == 30.0