You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an issue with getting my custom fonts to work in Macaw.
SVG file:
text id="A" font-family="Roboto-Bold, Roboto" font-size="30" font-weight="bold" line-spacing="40" fill="#FFFFFF"
It crashes in the following code for unexpectedly found nil while unwrapping an Optional value:
class func loadFont(name: String, size: Int, weight: String?) -> MFont? {
...
fontDesc = fontDesc.withSymbolicTraits(.traitBold)!
...
}
Hope you can fix it.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Couldn't reproduce your issue, but fixed possible crash. I think it might occurs because you have Roboto font, but don't have its bold version installed. Anyway, please use the master version to check it out.
* master:
update w3c-test
update w3c-test
change location of SVGKeys
Fixexyte#388: add enum Keys with fill, color and currentColor
Fixexyte#388: add test for color-prop-05-t-manual
Fixexyte#388: fix fill for group with currentColor
Fixexyte#399: add test for struct-use-01-t-manual
exyte#548 remove imageContextStack, add scale property to CGContext
exyte#528 fix memory leak with Image objects
Avoid NPE mentioned in exyte#571: LoadFont with "bold" weight will crash
I have an issue with getting my custom fonts to work in Macaw.
SVG file:
text id="A" font-family="Roboto-Bold, Roboto" font-size="30" font-weight="bold" line-spacing="40" fill="#FFFFFF"
It crashes in the following code for unexpectedly found nil while unwrapping an Optional value:
class func loadFont(name: String, size: Int, weight: String?) -> MFont? {
...
fontDesc = fontDesc.withSymbolicTraits(.traitBold)!
...
}
Hope you can fix it.
Thanks in advance.
The text was updated successfully, but these errors were encountered: