Re: FT Cache Subsystem: Custom caches

2023-11-07 Thread Alexei Podtelezhnikov
Hi Kelvin If you only interested in subpixels shifts and intend to cache 3 positions, you can achieve using LCD rendering and https://freetype.org/freetype2/docs/reference/ft2-lcd_rendering.html#ft_library_setlcdgeometry. It is apparent that LCD rendering is essentially 3 traditional antialiased

Re: FT Cache Subsystem: Custom caches

2023-11-02 Thread takase1121 via FreeType users
Hi, sorry for the confusion; I think its better if I explain my current approach first: 1. I create a FTC_Manager, FTC_CMapCache and FTC_ImageCache, and set them up. 2. I query a glyph ID from FTC_CMapCache. 3. I get a glyph image (almost always an outline in my case) from FTC_ImageCache. 4. I

Re: FT Cache Subsystem: Custom caches

2023-10-30 Thread Werner LEMBERG
> I'm trying to use FreeType cache subsystem to render glyphs. I tried > using FTC_SBitCache but I need to modify the outline before > rendering (translate and transform) so I could only use > FTC_ImageCache, modify the outline and render it. > > Is there a way to extend the cache mechanism to

FT Cache Subsystem: Custom caches

2023-10-24 Thread takase1121 via FreeType users
Hi, I'm trying to use FreeType cache subsystem to render glyphs. I tried using FTC_SBitCache but I need to modify the outline before rendering (translate and transform) so I could only use FTC_ImageCache, modify the outline and render it. Is there a way to extend the cache mechanism to create