Closed michaelgale closed 7 months ago
I get the same error on Ubuntu 18.04.
@jmwright Glad to hear its repeatable. After changing the way Font_BRepTextBuilder
gets called, I can use any font (although not all Font Aspects) discovered by OCCT from the OS's font libraries. I can also register new fonts (or modify mappings inside the OCCT internal font library) to fine tune the selection of desired typefaces. I think the problem is related to how the arguments to Font_BRepTextBuilder.Perform
get mapped from OCCT to OCP.
Thanks for finding this @michaelgale !
So was this fixed in this commit? https://github.com/CadQuery/cadquery/commit/23418b98a7278173eb7576ed5e3faf9ec5a803ea
This seems to be fixed. Closing.
Yep. Its been fixed for a while. Forgot to close.
When attempting to specify a specific typeface for makeText, it results in the following error:
After making an alternate implementation of makeText, I discovered that the
makeText
method should be modified as follows:should be:
Perhaps its related to how
Font_BRepTextBuilder
gets wrapped when building OCP?Tested on Linux version 4.15.0-96-generic (ubuntu 18.04)