[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Extracting approximate outlines from FT ?
From: |
Werner LEMBERG |
Subject: |
Re: Extracting approximate outlines from FT ? |
Date: |
Tue, 05 May 2020 20:30:01 +0200 (CEST) |
>> Mhmm, you could copy the data stored `face->glyph->outline' into a
>> new `FT_Outline` structure and iterate over the outlines, [...]
>
> I wrote something that seems to be working, but I would like to
> cache the contours. For Open_type_font, this is easy, but for
> Pango_font, each string can be composed of multiple FT_Faces, and I
> suspect they might be deallocated during a program run. Do you know
> of a suitable immutable key for FT_Face (eg. full filename) that I
> could get out of either Freetype or Pango?
FreeType doesn't have such an immutable key – if I understand the
issue correctly –, and I don't have sufficient knowledge of Pango to
give further advice, sorry.
Werner