jArchi - set default values for .fontName, .fontSize, .fontStyle

Started by owol, January 15, 2024, 13:44:46 PM

Previous topic - Next topic

owol

Hi,
with jArchi I can set .fontColor to the default by assigning the value null.
Is there a way to do so for
.fontName
.fontSize
.fontStyle
as well?

I can get the .iconColor default by assigning "" - wouldn't it be possible to generally get the default by assigning null?

Alternatively, is there a way to read the Archi preferences configuration using jArchi?

Kind regards, Olav

Phil Beauvoir

Hi,

No, it's not possible to set those ones to a user default value by assigning null.

Setting "" for the iconColor is actually not setting it to the user default but rather the in-built default of black.

There's no public API to read the preferences configuration in jArchi (see https://github.com/archimatetool/archi-scripting-plugin/issues/40). There may be a way to do it using some native Java calls from JavaScript, I'm not sure if anybody's done that, I'll ask.

Phil
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

Phil Beauvoir

If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.