|
Post by bluesnake on Oct 21, 2022 23:02:47 GMT
Hi,
I would like to match the font size from text (that is scaled down) for text 2, but I don't know how to call for the value. I tried the following, but it didn't work:
text:
left: 131
top: 626.5
width: 535.5
height: 279.51
font:
name: MPlantin
italic name: MPlantin-Italic
size: 28
scale down to: 12
color: black
symbol font:
name: { styling.text_box_mana_symbols }
size: 28
text 2:
left: 87
top: 626.5
width: 579.5
height: 93.17
font:
name: MPlantin
italic name: MPlantin-Italic
size: to_number(card_style.text.font.content_size)
scale down to: 12
color: black
symbol font:
name: { styling.text_box_mana_symbols }
size: to_number(card_style.text.symbol_font.content_size)
Please, if some could help me on how to fix this.
Thanks.
|
|
GenevensiS
3/3 Beast
Posts: 170
Favorite Card: Baleful Strix
Favorite Set: Urza's Saga
Color Alignment: Blue, Black
|
Post by GenevensiS on Oct 22, 2022 7:19:53 GMT
One way is to create a styling field
styling field: type: text name: font cap
Then, in both text and text 2, read the value of this field to cap the font size
size: { if styling.font_cap == "" then 28 else to_number(styling.font_cap) or else 28 }
Now if a card has different font sizes in both textboxes, you can write a value in the styling field to cap them both to the same size.
|
|