[HarfBuzz] Inheriting/copying font functions

Tom Hacohen tom.hacohen at partner.samsung.com
Sun May 15 04:51:14 PDT 2011


On Thu, 2011-05-12 at 10:17 +0300, Tom Hacohen wrote:
> My code now looks like:
> 
>    hb_ft_font = hb_ft_font_create(ft_face, NULL);
>    hb_font = hb_font_create_sub_font(hb_ft_font);
> 
>    hb_font_set_funcs(hb_font, my_font_funcs_get(), my_data,NULL);
> 
>    hb_shape(hb_font, buffer, NULL, 0);
> 
>    hb_font_destroy(hb_font);
>    hb_font_destroy(hb_ft_font);
> 
> my_font_funcs_get() return my font functions that have either nil or my
> implementation alternatives.


Oops, forgot to ask, is this correct?

Thanks,
Tom.




More information about the HarfBuzz mailing list