custom control font

T

Tomer

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.
 
T

Tomer

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top