all groups > dotnet compact framework > january 2005 >
You're in the

dotnet compact framework

group:

custom control font


RE: custom control font Alex Yakhnin [MVP]
1/31/2005 10:55:05 AM
dotnet compact framework:
Are you sure that your device has Arial font on it?

--
Alex Yakhnin, .NET CF MVP
www.intelliprog.com
www.opennetcf.org
My blog: http://blog.opennetcf.org/ayakhnin

[quoted text, click to view]
custom control font Tomer
1/31/2005 6:32:34 PM
Hi,

I've a custom control inherited from a control. lets say that this control
functions as a label.

I the designer I set the control's font to arial.
When I check in run time the font of the control I get the right size, but
the font name is always Tahoma.

This issue is very problematic for me, cause I change the font size in run
time from within the control acording to some external data.

Any ideas on how to solve this?

Tomer.

Re: custom control font Tomer
2/1/2005 9:47:48 AM
Hi,

If I set it in the designer without changing the font in run time it is
displayed currectly.
When I try to create a new font which is the same as the current one but
only with a different size,
I get the tahoma font.

Just in case on my second attempt, I've put the arial.ttf file in the
windows folder.
Which didn't work.
After that I've put the file in \windows\fonts folder
And that solved the problem.

This still doesn't explain why the font was displayed currectly at the first
place.

Thanks for the support!!

Tomer.



[quoted text, click to view]

AddThis Social Bookmark Button