IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#36299 - 06/08/11 01:26 PM SetStyleExt Default Fontsize
ZCameron Offline
OL Newbie

Registered: 12/12/08
Posts: 8
Loc: Provo, UT
The documentation for the SetStyleExt function says the following regarding the fontsize parameter:

"Measure value representing the point size for the font. A value of -1 use the default font size of the style
specified by stylename."

However, when I use -1 as the fontsize parameter, my text ends up tiny and upside down. Is this a bug or am I using it wrong?

Example:

SetStyleExt(&Style1, -1, 0, [255], 100)


Any info on this would be greatly appreciated!

Top
#36310 - 06/09/11 09:50 AM Re: SetStyleExt Default Fontsize [Re: ZCameron]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
ZCameron,

I've tested setstyle with -1 as the font size, and indeed, instead of giving me the default font size, it gives me some tiny characters flipped upside down, as if it was applying a negative font size rather than using the default font size.

Since the documentation does says that it should be the default font size, looks like this is an issue with the setstyleext command that I will need to report to R&D.

Thanks you for finding it!

Raphaël

Top