Re: Font Rendering: Multiple FT_Faces and baselines

2023-07-19 Thread takase1121
Hi, Sorry for the mess of emails. This is my first time using a mailing list, and I'm still getting the hang of it. I'm aware that when drawing text, all glyphs should be aligned on a single baseline. The example I've given does not do this; it aligns the text on different font's baseline,

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

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

Re: Font Rendering: Multiple FT_Faces and baselines

2023-07-19 Thread takase1121 via FreeType users
Hi, Thank you for pointing it out. I'm unsure about the strategy to align the baselines. The simplest would be aligning to the lowest / highest baselines, but that may break some faces. The other method would be the one I mentioned - calculate an "average" baseline and align to that, but it

Font Rendering: Multiple FT_Faces and baselines

2023-07-16 Thread takase1121 via FreeType users
Hi, I'm working on a renderer using FreeType. The renderer creates a list of FT_Faces, and query each face to find a suitable glyph for a given codepoint. This glyph is then rendered into a bitmap and stored for later use. When text is rendered, the renderer calculates the position of the