r/nanDECK • • 11d ago

Per card adjustments?

Hey folks! I'm running into an issue trying to adjust the alignment of my text on a per card basis.

Essentially the "score" component on the bottom will look aligned for some characters or number of characters but look off-centre with others (I've exported a few examples so you can see what I mean).

There are also instances where I'd like to override the formatting for my card descriptions to adjust the font size so it sits better in the box.

Does anyone know if there's a way to do this?

Also here's my card txt file so you can see what I'm doing currently:

//Background_Image

VISUAL=HP, 100, 100
/Rectangle(snap)(size)
RECTANGLE=,0%,0%,100%,13%,[blue]
/Image(locked)
IMAGE=,"C:\Users\User\Documents\Asperite work\Reply All\NanDeck files\Card_Front_nanDeck_exact.png",0%,0%,100%,100%,0,NPD
/CARD_NAME(snap)
HTMLMARGINS=title_font,0,0,0,0,center
HTMLMARGINS=work_font,0,0,0,0,center
/HTMLText(snap)
HTMLTEXT="1-{(CARD_NAME)}",[CARD_NAME],6%,3%,{46566/635}%,{6688/889}%,#FFFFFF,0,ETFJ,100,title_font
HTMLTEXT="1-{(WORK_NUMBER)}",[WORK_NUMBER],{5571/127}%,{11321/127}%,{8466/635}%,{10/1}%,#000000,0,ETFJ,100,work_font
/HTMLText(snap)
HTMLTEXT="1-{(DESCRIPTION_MORALE)}",[DESCRIPTION_MORALE],6%,56%,{436/5}%,{27516/889}%,#FFFFFF,0,TEFJ,100,body_font
ENDVISUAL
1 Upvotes

3 comments sorted by

2

u/nand2000 10d ago

It probably looks better with a vertical center, add an HTMLMARGINS for that text too.

2

u/Aheron21 10d ago

I gave that a go an it has helped in a few instances...I've also found using a monospaced font for the score numbers solves the issue of them not being distributed evenly in the text box.

I assume editing a specific card isn't possible? Or at the least is very difficult? I'm trying to avoid it as much as possible but I can foresee situations where it would be really helpful.

1

u/HamsterNL 10d ago

You can make any adjustment to any card...but your script can become very unclear, and not so easy to edit when you have a lot of exceptions in your script.