Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Information Contained in the Font Object

Reply
 
Old 01-13-2009   #1 (permalink)
Gary Bouchard


 
 

Information Contained in the Font Object

I have a strange problem occurring that I cannot find an answer for when
working with a Font object in my VB6 app.

here is the code in a function with a boolean return type;
_________________________________________________
Dim oFont As New StdFont

On Error Resume Next

Set oFont = New StdFont
With oFont
.name = Trim$(sFontName)
End With
'oFont.name = sFontName
' Check to see whether the font name passed in was valid by seeing
' if the property got set.
IsFontSupported = (UCase$(oFont.name) = UCase$(sFontName))
' Whatever happens, return a valid font name in this ByRef parameter.
sFontName = oFont.name

err.Clear
_________________________________________________

The problem is that when I set the font with the passed in variable, it
changes from its default of 'MS San Serif' to 'Arial', when the variable
contained "Veranda".

I verified that the Veranda font exists, so I am not sure what would cause
the object to do this?

Any help is appreciated.



My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
self-contained app .NET General
Determine if user contained in Log On As A Service local policy... VB Script
datalist -- Object reference not set to an instance of an object. .NET General
How to remove unneeded large asian font files from font folder Vista account administration
Adding canonical aliases for Compare-Object, Measure-Object, New-Object PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46