Re: Fonts Unicode

2005-07-27 Thread Dar Scott


On Jul 26, 2005, at 2:49 PM, Brad Borch wrote:

4. If the text pasted in is styled text from a Unicode font, the 
htmlText reflects this:


font face=TITUS Cyberbit Basic 
lang=el#945;#946;#948;#966;#949;/font


Note the lang='el' parameter. The el stands for Ellinas, which 
is the Greek word for... Greek. Presumably Rev looks at the range the 
character is in, determines what language it is, and sets this 
parameter accordingly.


I get confused about what Rev thinks language means.  In the unicode 
conversion names it seems to mean encoding scheme.  Since this is 
pseudo-html, this may mean something else, but might mean encoding 
scheme.  The codes are too high for any 8-bit encoding.


One of the things I kept forgetting to do was set the language in the 
font property.


Dar

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Fonts Unicode

2005-07-26 Thread Brad Borch
I've been working through trying to figure out what takes precedence in 
the font applied to unicode text in a field. Here's what I found. Maybe 
this will help someone else avoid frustration.


1. For non-unicode text, the textFont of the object or its parent:
the textFont of the stack 
the textFont of the group 
the textFont of the card 
the textFont of the object

This setting applies to non-unicode text to which no specific inline 
style has been applied.


2. The htmlText of the text includes inline styles that allow fonts to 
be applied: font face=Arial size=18bde/b/font.


3. If Rev encounters unstyled unicode text, either by being pasted in or 
typing in with an alternate keyboard encoding, it converts it to a 
unicode font. The html of the text includes a font tag and the unicode 
entities:


font face=Geneva lang=en-UC#945;#946;#948;#947;#949;/font

4. If the text pasted in is styled text from a Unicode font, the 
htmlText reflects this:


font face=TITUS Cyberbit Basic 
lang=el#945;#946;#948;#966;#949;/font


Note the lang='el' parameter. The el stands for Ellinas, which is 
the Greek word for... Greek. Presumably Rev looks at the range the 
character is in, determines what language it is, and sets this parameter 
accordingly.


So it is possible to get extended characters by by setting the htmlText 
to include entities, or by setting the unicodeText. However, this does 
NOT change the actual font used; Revolution still uses whichever font it 
has determined is the unicode font. On the Mac, it appears to be using 
Lucida Grande. On the PC, it appears to be Arial. I cannot tell because 
the htmlText does not reflect the actual font used to show the unicode 
characters.


Also, if you try to change the font of unicode text using the menu, the 
text gets converted back to single-byte characters.


So, assuming I can install a unicode font on the user's machine, I'm 
still stuck because I have no way to force Rev to use that particular font.


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


fonts unicode

2005-07-26 Thread Brad Borch
I've been working through trying to figure out what takes precedence in 
the font applied to unicode text in a field. Here's what I found. Maybe 
this will help someone else avoid frustration.


1. For non-unicode text, the textFont of the object or its parent:
the textFont of the stack 
the textFont of the group 
the textFont of the card 
the textFont of the object

This setting applies to non-unicode text to which no specific inline 
style has been applied.


2. The htmlText of the text includes inline styles that allow fonts to 
be applied: font face=Arial size=18bde/b/font.


3. If Rev encounters unstyled unicode text, either by being pasted in or 
typing in with an alternate keyboard encoding, it converts it to a 
unicode font. The html of the text includes a font tag and the unicode 
entities:


font face=Geneva lang=en-UC#945;#946;#948;#947;#949;/font

4. If the text pasted in is styled text from a Unicode font, the 
htmlText reflects this:


font face=TITUS Cyberbit Basic 
lang=el#945;#946;#948;#966;#949;/font


Note the lang='el' parameter. The el stands for Ellinas, which is 
the Greek word for... Greek. Presumably Rev looks at the range the 
character is in, determines what language it is, and sets this parameter 
accordingly.


So it is possible to get extended characters by by setting the htmlText 
to include entities, or by setting the unicodeText. However, this does 
NOT change the actual font used; Revolution still uses whichever font it 
has determined is the unicode font. On the Mac, it appears to be using 
Lucida Grande. On the PC, it appears to be Arial. I cannot tell because 
the htmlText does not reflect the actual font used to show the unicode 
characters.


Also, if you try to change the font of unicode text using the menu, the 
text gets converted back to single-byte characters.


So, assuming I can install a unicode font on the user's machine, I'm 
still stuck because I have no way to force Rev to use that particular font.


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Fonts Unicode

2005-07-26 Thread Dar Scott


On Jul 26, 2005, at 2:49 PM, Brad Borch wrote:

So, assuming I can install a unicode font on the user's machine, I'm 
still stuck because I have no way to force Rev to use that particular 
font.


This behavior in OS X 10.3 is not what I saw in 10.2:

I tried several fonts with control pictures, which are not in Lucida 
Grande.  In this case, using Unicode did not chose Lucida Grande, but 
one of them.  Which one depended on which font was enabled.  Also, if 
some fonts had only some, the font might still be chosen.


The behavior was such that I thought I'd use imageSource if I ever got 
back to that project.


What you see might be related to bugzilla 2493.

In OX X 10.2 I think my tests were only with Lucida Grande.  The 
control pictures were very ugly.  I suspect that some OS test font was 
used for some reason.


Dar

--
**
DSC (Dar Scott Consulting  Dar's Lab)
http://www.swcp.com/dsc/
Programming and software
**

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Fonts Unicode

2005-07-26 Thread Dar Scott


On Jul 26, 2005, at 2:49 PM, Brad Borch wrote:

Also, if you try to change the font of unicode text using the menu, 
the text gets converted back to single-byte characters.


It would be nice if language was a separate property and not part of 
the font property.  Then each can be changed independently.  Or the IDE 
acted that way.


(Actually, I'd personally rather do away with language and go strictly 
Unicode for everything.  I probably don't understand all the 
consequences of asking for that.  Unicode tries to handle round-trip 
conversion from and to other standards, so I think we would be happy 
with pasting strange encodings and with selecting any fonts--it would 
be usually transparent.  For I/O we would want to convert, though.)


Dar

--
**
DSC (Dar Scott Consulting  Dar's Lab)
http://www.swcp.com/dsc/
Programming and software
**

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution