font name. This is looked up by the operating system and may be interpreted differently across platforms or user machines and their preferences.
font size. This may be interpreted differently by different systems and different fonts. Size 0 means load a default, which may not exist and cause isNull to become true.
approximate boldness, results may vary.
try to get a slanted version of the given font.
Xft support was added on November 13, 2020. It would only load core fonts. Xft inclusion changed font lookup and interpretation of the size parameter, requiring a major version bump. This caused release v9.0.
name is a font name, but it can also be a more complicated string parsed in an OS-specific way.
On X, you may prefix a name with core: to bypass the freetype engine causing this function to forward to loadCoreX. Otherwise, it calls loadXft if the library is available. If the library or font is not available on Xft, it falls back on loadCoreX.
On Windows, it forwards directly to loadWin32.