View Full Version : Beta 2022-02 String field offsets
bayne7400
February 18th, 2022, 21:03
I have a few string fields that have the following setup:
line offset: 2
frame offset: 5,0,0,0
Frame: none (transparent)
font :Sheet text
On test the text is being jammed into the the underline. On live the text is several pixels above the line.
Jiminimonka
February 18th, 2022, 21:15
51547
I tried a new campaign, no extensions etc., just OSE ruleset. All the NPCs have the text line like this.
superteddy57
February 18th, 2022, 23:06
I would adjust your line offset. I think a 1 or 0 might fix the issue.
bayne7400
February 18th, 2022, 23:09
Hey Super Teddy. I know how to fix this but this is a crap ton of controls I need to update. I am wondering what did you guys change and was it intentional?
bayne7400
February 18th, 2022, 23:46
I tested out moving them to zero and -1. -1 seemed to be about the same as it was on live as far as positioning. Before I go change every single offset I would like to know if this was on purpose or whatever changed is going to revert.
bmos
February 19th, 2022, 00:16
I tested out moving them to zero and -1. -1 seemed to be about the same as it was on live as far as positioning. Before I go change every single offset I would like to know if this was on purpose or whatever changed is going to revert.if you do end up having to make all those changes, try using some templates instead!
bayne7400
February 19th, 2022, 00:30
if you do end up having to make all those changes, try using some templates instead!
Haha good call. Was really our first ruleset so lots of learning with this one for sure.
Trenloe
February 19th, 2022, 00:45
I am wondering what did you guys change and was it intentional?
There are changes to underlining in the code currently in test: https://www.fantasygrounds.com/forums/showthread.php?72524-FG-Unity-Beta-Release-v4-1-14&p=639335&viewfull=1#post639335
bayne7400
February 19th, 2022, 00:54
There are changes to underlining in the code currently in test: https://www.fantasygrounds.com/forums/showthread.php?72524-FG-Unity-Beta-Release-v4-1-14&p=639335&viewfull=1#post639335
I see it now thank you! I guess I know what I am doing
Moon Wizard
February 19th, 2022, 01:55
By default, the lineoffset of zero should map to the underline setting defined in the font you are using. If the underline offset is off, it may be because the underline offset defined in the font itself is not correct.
In the CoreRPG and other built-in rulesets, I removed the lineoffset/controloffset values (i.e. set to zero); because they are no longer needing adjustment with the default font (Noto Sans).
If you need to edit the fonts to fix the underline offset, you can use an open source tool like FontForge to edit the font information and rebuild the font.
Regards,
JPG
bayne7400
February 19th, 2022, 12:31
Thanks will save me some time for sure.
Powered by vBulletin® Version 4.2.1 Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.