The FontMap is the primary entry point for locating and loading font.Font objects. You should create a new FontMap for each text shaping task.
To populate the map, you can use one or both of the following methods:
UseSystemFonts: Scans and includes fonts installed on the host system. The first call triggers a filesystem scan to build a font index, which is then cached on disk for faster subsequent launches.AddFont / AddFace: Adds specific user-provided font files or faces to the map.
Once initialized, the FontMap satisfies the shaping.Fontmap interface, allowing it to be used with shaping.SplitByFace.