Created
October 3, 2013 22:52
-
-
Save Navisho/6818354 to your computer and use it in GitHub Desktop.
Check if font is installed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Function IsFontInstalled(ByVal FontName As String) As Boolean | |
Dim TestFont As Font = New Font(FontName, 10) | |
Return CBool(String.Compare(FontName, TestFont.Name, StringComparison.InvariantCultureIgnoreCase) = 0) | |
End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment