Custom glyph rendering after deprecation of pango_fc_font_lock_face

I have a PangoRenderer implementation which renders text into a custom file format (it doesn’t matter for this question I think, but it is the notebook format of the ReMarkable e-ink tablet). The current implementation uses pango_fc_font_lock_face to get the freetype FT_face and then uses FT_Outline_Decompose to render the glyph into the custom format. I have implemented each of the FT_Outline_Funcs (conic_to, cubic_to, line_to, move_to).

I see that pango_fc_font_lock_face has been deprecated for pango_font_get_hb_font so I am trying to figure out how to adapt this code. I am new to harfbuzz so can someone point me into the best direction forward. Digging through the API docs (hb-font: HarfBuzz Manual), and in my ignorance, I think I am looking for either of:

  • Is there a harfbuzz equivalent (or approximate) of FT_Outline_Decompose ?
  • Is there a way to get the FT_face from a hb_face_t?

though if my approach is flawed I’m happy for someone to point me in the right direction.

Edit 1: Added link to hb docs

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.