-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testText test case failing #187
Comments
I' m not sure if I get it. Running this box = cq.Workplane("XY" ).box(4, 4, 0.5)
obj1 = box.faces('>Z').workplane()\
.text('CQ 2.0',0.5,-.05,cut=True,halign='left',valign='bottom', font='Sans')
obj2 = box.faces('>Z').workplane()\
.text('CQ 2.0',0.5,.05,cut=False,combine=True, font='Sans')
text = cq.Workplane("XY").text('CQ 2.0',0.5,.05,cut=False,combine=False,font='Sans')
debug(obj1.val().Volume())
debug(obj2.val().Volume())
debug(text.val().Volume()) I get
|
Running in an Ubuntu VM, the test passes. I am assuming it is an issue with the font that is used in the Fedora VM, since the rendered fonts are different between the two. Not sure what font is being used in either one. |
I had a chance to look into this more and it does appear to be an issue with the font used in the Fedora 30 VM. Maybe a specific font (open source or otherwise distributable) should be packaged and used for the test (and any tests involving fonts) so that the test is the same across all systems? It would need functionality mentioned in #198 |
Running on a Fedora 30 VM and a conda env with CQ installed. Wanting to check if this is occurring for others as well.
obj2.val().Volume() appears to be returning 0.
Using cq-editor to view the created text, it appears the dot in the center of the 0 in '2.0' is not a complete solid.
Interestingly the text has volume by itself, and does effect the volume of the box when cut from it.
The text was updated successfully, but these errors were encountered: