Trying to use a custom font.

Issue #991 invalid
Former user created an issue

Trying to use a custom font.

Font name: A-OTF Shin Go Pr5 B.otf

Error:

System.ArgumentException: Only TrueType fonts are supported. This is not a TrueType font. at System.Drawing.Font.FromLogFont(Object lf, IntPtr hdc) at System.Windows.Forms.FontDialog.UpdateFont(LOGFONT lf) at System.Windows.Forms.FontDialog.RunDialog(IntPtr hWndOwner) at System.Windows.Forms.CommonDialog.ShowDialog(IWin32Window owner) at (OptionsForm , Object , EventArgs ) at LaunchBox.Forms.OptionsForm.fontButton_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at LaunchBox.Controls.CustomButton.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Comments (2)

  1. Brad Cheyne

    As the error says, TrueType fonts are the only accepted format. You'll either need to install a true type variant of the font or choose a different font. Unless Jason wants to implement the ability to use different type fonts then I am going to close this.

  2. Log in to comment