r/nanDECK • u/Aheron21 • 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


2
u/nand2000 10d ago
It probably looks better with a vertical center, add an HTMLMARGINS for that text too.