FcFreeTypeCharIndex(3)

πŸ¦‹ FcFreeTypeCharIndex πŸ¦‹

okay so welcome to the FcFreeTypeCharIndex(3) page, bestie 🫢 we're mapping Unicode to glyph ids and it's giving font detective energy. no cap.


🌸 NAME 🌸

FcFreeTypeCharIndex β€” map Unicode to glyph id πŸ’…

✨ SYNOPSIS ✨

include these two, exactly:

#include <fontconfig.h>
#include <fcfreetype.h>

FT_UInt FcFreeTypeCharIndex (FT_Face face, FcChar32 ucs4);

πŸ’– DESCRIPTION πŸ’–

So like, FcFreeTypeCharIndex() maps a Unicode char to a glyph index. You hand it an FT_Face face and an FcChar32 ucs4, and it does the mapping thing ✨.

The way it works: it uses information from several possible underlying encoding tables to work around broken fonts. That's the whole plot πŸŽ€. Because of that, this function isn't designed to be used in performance sensitive areas β€” periodt. Results from this function are intended to be cached by higher level functions, so let the big functions hold onto the answer, okay? πŸ’…

⚠️ lowkey important: not a performance-sensitive-area girlie, and the results are meant to be cached by higher level functions, fr fr.

stay slay, bestie β€” this page comes from Fontconfig 2.17.0, dated 27 June 2025 πŸŽ€βœ¨

πŸ“¦ where this page comes from