private static extern float MFFont_DrawTextAnchored(MFFont font, [MarshalAs(UnmanagedType.LPStr)] string text, ref MFVector pos, MFFontJustify justification, float lineWidth, float textHeight, ref MFVector colour, int numChars, ref MFMatrix ltw);
private Font(MFFont handle) { resource.handle = handle; }
private static extern int MFFont_BlitText(MFFont font, int x, int y, ref MFVector colour, [MarshalAs(UnmanagedType.LPStr)] string text, int maxChars);
private static extern float MFFont_DrawText2(MFFont font, float x, float y, float height, ref MFVector colour, [MarshalAs(UnmanagedType.LPStr)] string text, int maxChars, ref MFMatrix ltw);
private static extern float MFFont_GetStringWidth(MFFont font, [MarshalAs(UnmanagedType.LPStr)] string text, float height, float lineWidth, int maxLen, out float totalHeight);
private static extern MFVector MFFont_GetCharPos(MFFont font, [MarshalAs(UnmanagedType.LPStr)] string text, int charIndex, float height);
private static extern float MFFont_GetCharacterWidth(MFFont font, int character);
private static extern float MFFont_GetFontHeight(MFFont font);
private static extern int MFFont_Release(MFFont font);