Hi Mark and Charles,

I have had many struggles with fonts and sizes until I understood correctly inheritance problems and, above all, some weird behaviours of the engine. For instance: if you set the textFont to empty, the textSize is set to empty too (this feature has been discussed on this list about a year ago) and there are other rather weird features...

I can only tell you one thing: we have to be "clean" and a "certain" steps order in a process regarding fonts and sizes has to be respected when building a stack. In particular, it seems that when you manipulate fields and fonts and sizes in all directions, kinds of droppings (see previous posts about default buttons :-) can remain.
That's not clear in the docs: so try, test and test again ;-)

Le 6 juil. 05 à 18:08, Mark Smith a écrit :

I just tried exactly what you described, and it worked just as it should. This on OS 10.3.9, G4 powerbook, Rev v2.6.

Strangely, though, in the recent thread about changing text size in a field, preserving relative sizes of styled text, I came across the same thing, where changing the textSize of a field affected only the unstyled text before a block of styled text, but not the unstyled text after....

However, the problem went away, without me doing anything about it, and from the test just now, seems to be staying away. This must be a bug, so worth bugzilla-ing, but if it's intermittent, it'll be a bitch to solve...

Good luck,

Mark
Le 6 juil. 05 à 18:08, Eric Chatonet a écrit :

Here it's working:
First, you set all textfont specs of any field, card and stack to empty.
You paste a text in any field.
You select the text and set its textfont to "Use Owner's Font" (empty) You select the lines you want to be in another font as Courier and set them. Now you set the textfont of the stack to any font and all lines the textfont of which were empty adopt the specified font (your 9-12 lines included).
You can change the textfont stack and it's going to work.
You can save and reopen the stack: all is perfect.

On 6 Jul 2005, at 13:03, Charles Hartman wrote:


Yes, that's what I'm doing. However, as I said, the text _after_ the specified-font text does _not_ switch to the altered owner's font.

Let me clarifiy: a field contains a dozen lines, let's say; the first six and last four have been created using Palatino, with Palatino as the stack font, so there's no font specification on any of those lines. Lines 7-8 have had their Text Formatting properties altered so their font is specified as Courier. Now in the main stack's script I insert the line "set the textfont of me to 'Arial'" and save and close the stack and its substacks and reopen. Now on that example card, in that field, lines 1-6 are Arial, 7-8 are Courier (all as expected) -- but lines 9-12 are still in Palatino.

I'm beginning to think this is a bug. I'll file a BZ on it. Any ideas on workarounds meanwhile? That don't involve iterating over all lines in all fields on all cards??

Charles Hartman


On Jul 6, 2005, at 2:07 AM, Eric Chatonet wrote:


1. Combining a specified font and a "not specified" font:
If you have a field with no font specified (use owner's font) and then you set the font for some lines, for instance, to Courier New (selecting these lines and choosing the right font in the Text menu). Then when you set the textFont of the stack (by script or in the properties inspector), only lines which use owner's font will change: they will appear in the specified font but the lines previously set in Courier New will stay unchanged.

Best Regards from Paris,

Eric Chatonet.
----------------------------------------------------------------
So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website
----------------------------------------------------------------
Web site        http://www.sosmartsoftware.com/
Email        [EMAIL PROTECTED]/
Phone        33 (0)1 43 31 77 62
Mobile        33 (0)6 20 74 50 86
----------------------------------------------------------------

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to