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] "Alex Yakhnin [MVP]" <a.yakhnin@online.att.net> wrote in message
news:B3F90031-8FC7-4863-BFE7-D27F1E3806D1@microsoft.com...
> 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 >
> "Tomer" wrote:
>
>> 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.
>>
>>
>>