denos@pathfinder.gr wrote:
>
> Roy Schestowitz wrote:
>> denos wrote:
>>
>> > I have created an application in guide of MATLAB 6.5 (R13) which
> has
>> > 10 GUI's. For all my UIcontrol Objects i used FontName: MS Sans
>> > Serif, FontUnits: Points, FontSize: 8 or 10 for some objects. Also,
>> > all my GUI's have Units: 'characters'.
>> >
>> > I hadn't any problem with appearance in other machines with almost
> the
>> > same screen resolution. However when i tried to run my application
> in
>> > one computer with TFT sreen and high resolution, all the UIcontrol
>> > Fonts were bigger and they didn't fit in their text boxes any more.
>> > After then i try to find what's happened but i am a lot of confused
>> > about. I can't find the most suitable FontName and size for my
>> > UIcontrols and i need your help. I changed all of my Fonts to
> default
>> > but i think that default fonts are not the same for all computers.
> How
>> > can i trust my GUI's Font properties to be displayed almost the
> same
>> > in the most machines??
>> >
>> > Please urgent HELP!!!
>>
>> I have experienced this issue time and time again. Linux and Window$,
> for
>> example, have different font sets and even the default font which is
>> Helvetica, IIRC, does not keep its uniformity across platforms... and
> not
>> only that... different Linux distros with different fonts result in
>> inconsistencies.
>>
>> My advice: choose fonts that are common to many platforms and
> allocate
>> enough space for text in your buttons, sliders, etc.
>>
>> Roy
>>
>> PS - Pictures with tooltips always work well.
>>
>> --
>> Roy Schestowitz
>> http://schestowitz.com
>
################################################################################
>
> I suppose that MS Sans Serif are very common fonts in the most windows
> machines.
> Can you tell me with your experience if i have to choose other fonts
> (Arial or Courier ...) or if in need to include some code to set
> defaults fonts (for example: set(0,'DefaultTextFontName','AnyFont)). I
> need to find the best approach for cross-platform compatibility!!
> Any further suggestions could be very helpful!!
Yes, any 'MS' font would be a bad choice if you are after inter-operability.
I think Ariel is common, and so is Courier but it tends to look bad. With
Linux, there might be an uppercase-lowercase issue. You will need many
machines to get this tested and, as I said before, make sure you leave
enough space so that text will not get truncated.
As I said, the problem often goes away if you use pictures and leave the
text to the tooltips.
Roy
--
Roy Schestowitz
http://schestowitz.com
|
|