freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] PCF: Issues with lazy copy in `ft_bitmap_glyph_init'


From: Werner LEMBERG
Subject: Re: [ft-devel] PCF: Issues with lazy copy in `ft_bitmap_glyph_init'
Date: Sun, 26 Aug 2018 06:58:23 +0200 (CEST)

>>> Please keep FT_Get_Glyph light.
>> 
>> Why?
>
> Because it is meant to be used once followed by as many
> FT_Glyph_Copy as you want.

OK.  Armin, can you change your usage pattern to something like the
following?

  FT_Load_Glyph( face, 0, 0 );
  FT_Get_Glyph( face->glyph, &reference );

  FT_Glyph_Copy( reference, &glyph1 );
  ...
  FT_Done_Glyph( glyph1 );

  FT_Glyph_Copy( reference, &glyph2 );
  ...
  FT_Done_Glyph( glyph2 );

  FT_Done_Glyph( reference );

Together with an update of the documentation this doesn't look too
bad IMHO.


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]