swift-graphics
swift-graphics copied to clipboard
Is it a way to draw bold text with custom font?
I would use similar method
graphics.draw(Text("Test", at: Vec2(x: 0, y: 15)))
but I would set font and size also.
Font size can already be set using e.g.
graphics.draw(Text("Test", fontSize: 14, at: Vec2(x: 0, y: 15)))
Bold text isn't currently supported, but if Cairo supports this it shouldn't be too hard to add (adding a fontWeight property to Text, then updating the implementation of draw(_ text: Text) in CairoGraphics). Feel free to open a PR!