I tried this but it does not seem to work... what am I missing?
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim privateFontCollection As New PrivateFontCollection
privateFontCollection.AddFontFile(CurDir() + "\" + "radio___.ttf")
rtbMyRichTextBox.SelectionFont = New Font("radio", 12,
FontStyle.Regular)
rtbMyRichTextBox.SelectedText() = "write these words in Radio font
to My rich text box"
End Sub
"Herfried K. Wagner [MVP]" wrote:
"BobAchgill" <Bo********@discussions.microsoft.com> schrieb: Is it possible to use a font that is not stored in the windows font
directory?
I would like to use a font that is stored in my application directory...
Take a look at 'PrivateFontCollection.AddFontFile'.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>