Author Topic: Lost font formatting on a diagram  (Read 1919 times)

colinc

  • EA User
  • **
  • Posts: 62
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Lost font formatting on a diagram
« on: April 11, 2006, 09:51:22 pm »
Hello all,

I've hit a problem with font formatting.

I did a select-all then chose a font size, thinking it would only effect the elements. It did update the elements, but only some, it doesn't seem to be able to update the fonts attatched to gateways, events or links (I'm using the BPMN plugin).

The fonts have now lost there ability to autosize, the main font for diagram itself is unreadably small and I can't expand it, and the labels are unreadable.

This is a fairly complex diagram that I really don't want to redo, but i need to print it.

Any ideas on how to get 'restore' the normal behaviour??

Thanks, Colin

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Lost font formatting on a diagram
« Reply #1 on: April 12, 2006, 03:56:26 am »
Hi Colin,

Don't know what the problem is but here's a guess:

The BPMN add-in used ShapeScripts to draw elements. Perhaps the scripts are dictating the fonts used in these elements, while the 'normal' drawing engine (or whatever) is doing so for any other text (diagram notes, non-BPMN stuff, etc.).

The BPMN add-in provides some pretty good examples of how ShapeScripts handle things. Still, within the BPMN scripts there are no examples of how fonts themselves are handled - I just checked them all again to be sure. The ShapeScript documentation is still 'out of date and incomplete' according to Sparx, though they are actively working on getting it up to speed, and I have every hope that this will be done soon (before or by 6.5, which I anticipate soon).

--- Neil: any update on this?

You could always try creating a sample shape of your own using the script from one of the BPMN elements (one with text) as your starting point. Try experimenting with some kind of SetFont or PreferredFont command (or SetFontSize or whatever) to see if you get anything (at all) that works. A good indicator would be to see if the keyword changes colour in the editor when you finish typing it. But note that not all valid keywords do this (for example, some of those used in BPMN bezier curves are not coloured in the editor, but the shapes appear to draw just fine - don't know if this is an error or not).

I know that's very hit and miss, but it could be a lot less work than recreating a whole lot of BPMN elements - they are so position-sensitive!.

[Remember this is a guess, and treat this with an appropriate measure of seasoning; work on a backup project at the very least.]

BTW, if you stumble on anything, via the above or otherwise, please update this thread. I must soon dive into some BPMN work, as well as other ShapeScript oriented stuff, and any info I can get is bound to save me some time and hair (and I have so little of either these days).

Good hunting,
David
No, you can't have it!