On Mar 24, 2006, at 8:45 AM, Mark O'Neill wrote:
What happens if you do a:
g.TextFont = "Arial Hebrew"
and then draw a string onto a canvas... does it display correctly
in that font? I.e., is the font accessible to other system controls?
That is something that is very difficult to test.
The problem is that REALbasic and Apple OS X APIs will substitute
individual glyphs if they are missing in the font *and* substitute
entire fonts if they do not exist in the Font() list. In these two
cases the "System" font will be used instead of the font selected.
You can determine if a font exists only by comparing the name of the
font to all of the items in Font() and you can create your own font
substitution algorithm if you do not want to use the "System" font.
However, there is NO way that I know of to discover if a font
actually has the requested glyph, nor is there a way to disable the
glyph substitution.
So back to your original question... if the "Arial Hebrew" font is
not available to REALbasic it will display in the "System" font. But
on the other hand it might actually exist but only for the Hebrew
Unicode characters... and it is very difficult to know if the Hebrew
characters are being displayed because of the font or because of the
glyph substitution that OS X uses.
That said, the test appears to show "System" instead of "Arial". The
most likely reason is that REALbasic does not see the font, but it is
also possible that the test failed for the described reasons above.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>