selfImFontAtlas handle on which this method operates.
filenameFilesystem path of the TTF/OTF font file.
size_pixelsRequested font height in pixels.
font_cfgFont-loading configuration; optional variants accept null for defaults. Ownership and merge settings affect how font data is retained.
glyph_rangesUint16Array of inclusive [first, last] pairs followed
by 0.
getGlyphRanges* helpers omit that terminator: append it explicitly with
new Uint16Array([...getGlyphRangesDefault(atlas), 0]).
Keep this input alive until atlas build; null selects default ranges.
Atlas-owned font handle, or null if the font file cannot be loaded. Glyphs become available after atlas building.
Load a TTF or OTF font file and register it for atlas building.