fix: support TTC font face selection via fontconfig index#498
Conversation
|
I have fixed the ci linter errors |
|
Thank you looking into this and for the PR. I first thought this was a femtovg bug, but this change looks almost like we're not using it correctly? I haven't tested the change fully yet, but I've got two remarks.
|
I agree this is not really a femtovg bug.
I have replaced my I also changed It now works great on my system. I'm happy to help with testing if you need it. |
|
Makes sense and looks good to me. |
See #495 for more information.
Satty currently loads fonts through
Canvas::add_font, which always uses face index0internally.This PR changed the font initialization flow to:
TextContextfirstTextContext::add_shared_font_with_indexCanvas::new_with_text_context(...)By doing so, Satty can use the face index returned by fontconfig and load the correct TTC face instead of always falling back to face
0close #495