Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I support all fonts? (Not just truetype fonts?)
#1
Hey, I am working on a notepad in VB.net.

I have a font dialog set up, but my when I choose a font that is not truetype, then it shuts down on me. Any ideas how I can support other types of fonts and how I can put this into my code? All I have is the font dialogue, and nothing else..

Code:
If TabControl1.TabCount = 0 Then
        End If
        Dim FS As New FontDialog
        If FS.ShowDialog = Windows.Forms.DialogResult.OK Then
            CType(TabControl1.SelectedTab.Controls.Item(0), RichTextBox).Font = FS.Font
        Else
            Exit Sub
        End If

Thanks in advance,
Jake
Reply


Messages In This Thread
How do I support all fonts? (Not just truetype fonts?) - by Jake6177 - 07-19-2012, 05:21 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)