/// <summary>Searches the asset list for a font with the given Id, returning null if /// none is found.</summary> /// <param name="fontId">Id of the font you're looking for.</param> /// <returns>An existing font asset, or null if none is found.</returns> public static Font Find(string fontId) { IntPtr fontInst = NativeAPI.font_find(fontId); if (fontInst == IntPtr.Zero) { Log.Write(LogLevel.Warning, "Couldn't find a font named {0}", fontId); return(null); } return(new Font(fontInst)); }