PDA

View Full Version : Line spacing in multiline stringfields



Weltenbrand
December 2nd, 2020, 12:48
Hi,
the spacing between lines is quite big in stringfields (or formatted text). Can it be reduced ?
(without shrinking the text, setting a lower multilinespacing seems to also shrink the text)

Thank you

Moon Wizard
December 2nd, 2020, 17:23
Can you give some screenshot examples of areas you are concerned about?
(On Windows, you can use Windows key plus Shift and S key to make quick snips of your screen. Not sure easiest way on Mac/Linux.)

Regards,
JPG

Weltenbrand
December 2nd, 2020, 18:01
The fields are "basicstring" from Core with multilinespacing 20.
It looks like a complete empty line between the text lines.

41606

Moon Wizard
December 2nd, 2020, 22:04
Most of the fonts used in CoreRPG are specified to be 16 units high with a 2 unit gap above and below. (units are equivalent to pixels at 100% UI scale).

It looks like you are running a custom ruleset and/or theme extension that is probably specifying it's own font and spacing.

Regards,
JPG

Weltenbrand
December 3rd, 2020, 08:37
It is custoum, but it is layered on CoreRPG and does not overwrite sheettext (which is used for simplestring which is the basis for basicstring).
This means I have to edit the ttf file or are there tags in the <font> definition?

Thank you

Moon Wizard
December 3rd, 2020, 17:56
The sheettext template and the sheettext font are separate assets. If the font definition is overwritten, it will affect any time that sheettext is used.

I've attached a picture of the font displayed in the CoreRPG ruleset in a similar record.

If you want a different display, you'll need to override the templates for lines. Remember that some characters are taller; and some characters descend below the baseline. Make sure you account for those when specifying template overrides.

Regards,
JPG