Add font module to full art basic land (#130)

This commit is contained in:
GenevensiS
2025-05-11 01:21:03 +02:00
committed by GitHub
parent 3372baba2e
commit 26c879e865

View File

@@ -38,6 +38,52 @@ card dpi: 150
############################################################## Extra scripts
init script:
swap_fonts_pt_default :=
[
name: {"Beleren Bold"},
size: {16.0},
color: {"black"},
vertical: {0},
italic: {"Beleren Bold"}
]
swap_fonts_body_default :=
[
name: {"MPlantin"},
size: {14.0},
color: {"white"},
vertical: {0},
italic: {"MPlantin-Italic"}
]
swap_fonts_type_default :=
[
name: {"Beleren Bold"},
size: {13.0},
color: {"black"},
vertical: {0},
italic: {""}
]
swap_fonts_name_default :=
[
name: {"Beleren Bold"},
size: {16.0},
color: {"black"},
vertical: {0},
italic: {""}
]
swap_fonts_name2_default :=
[
name: {"MPlantin-Italic"},
size: {9.0},
color: {"white"},
vertical: {0},
italic: {"MPlantin-Italic"}
]
swap_fonts_name2_src := { styling.custom_alias_font or else "" }
template_prefix :=
[
crown: "crown/",
@@ -160,9 +206,6 @@ init script:
chop_bottom := { split := split_comma(styling.chop_textbox); if length(split) > 1 and split.1 != "" and split.1 != "-" then clamp(to_int(split.1), minimum: -300, maximum: 250) else 0 }
chop_right := { split := split_comma(styling.chop_textbox); if length(split) > 2 and split.2 != "" and split.2 != "-" then clamp(to_int(split.2), minimum: -300, maximum: 250) else 0 }
shrink_name := { if styling.shrink_name_text == "-" then 0 else if styling.shrink_name_text != "" then clamp(to_number(styling.shrink_name_text), minimum: -25, maximum: 14) else 0 }
shrink_type := { if styling.shrink_type_text == "-" then 0 else if styling.shrink_type_text != "" then clamp(to_number(styling.shrink_type_text), minimum: -25, maximum: 12) else 0 }
use_main_rarity := { contains(set.mainframe_rarity_name, match: ".png") }
rarity_right := { split := split_comma(styling.rarity_coordinates); if length(split) > 0 and split.0 != "" then clamp(split.0, minimum: 0, maximum: 800) else 344 }
@@ -224,18 +267,6 @@ styling field:
name: stretch art to whole card
description: Make the image span the whole card instead of just the visible part. Use this to help make popout effects.
initial: no
styling field:
type: text
name: shrink name text
description: Shrinks name X pixels.
styling field:
type: text
name: shrink type text
description: Shrinks type X pixels.
styling field:
type: text
name: rule text font size cap
description: Caps the font size of the rules text and the flavor text. Default is 13.
styling field:
type: choice
name: center rule text
@@ -244,17 +275,6 @@ styling field:
choice: short text only
choice: never
initial: never
styling field:
type: color
name: text color
description: Use the specified color for the rule text.
choice:
name: black
color: rgb(0,0,0)
choice:
name: white
color: rgb(255,255,255)
initial: white
styling field:
type: color
name: textbox color
@@ -380,18 +400,14 @@ styling field:
description: Symbols used in the rule text and flavor text.
match: magic-mana-*.mse-symbol-font
initial: magic-mana-small.mse-symbol-font
include file: /magic-modules.mse-include/fonts/styling_fields
styling field:
type: text
name: name font
description: Font used for the name, alias, type, pt, and transformation reminder. Hover your mouse over the font file to see it's details, and write it's Title here.
styling field:
type: text
name: text font
description: Font used for the rule text. Hover your mouse over the font file to see it's details, and write it's Title here.
styling field:
type: text
name: text italic font
description: Font used for the flavor text and reminder texts. Hover your mouse over the font file to see it's details, and write it's Title here.
type: text
name: custom alias font
description: Formatted as "font name;font size;font color;vertical offset;italic font name" last 4 are optional. color can be a name or R,G,B,A numbers.
styling style:
use guild mana symbols:
choice images:
@@ -449,9 +465,11 @@ card style:
z index: 900
alignment: middle left shrink-overflow
font:
name: Beleren Bold
size: { 16 - shrink_name() }
color: black
name: { name_font() }
italic name: { name_font_italic() }
size: { name_font_size() }
scale down to: 7
color: { name_font_color() }
casting cost:
right: 346
top: 28
@@ -462,12 +480,14 @@ card style:
always symbol: true
font:
name: MPlantin
size: 15
color: black
italic name: { name_font_italic() }
size: { name_font_size() }
scale down to: 7
color: { name_font_color() }
symbol font:
name: { styling.casting_cost_mana_symbols }
size: 15
#alignment: middle right
size: { name_font_size() }
scale down to: 7
alias:
left: 54
top: 58
@@ -476,9 +496,11 @@ card style:
z index: 900
alignment: middle center shrink-overflow
font:
name: MPlantin-Italic
size: 9
color: white
name: { name2_font() }
italic name: { name2_font_italic() }
size: { name2_font_size() }
scale down to: 5
color: { name2_font_color() }
weight: bold
############################# Image
image:
@@ -511,9 +533,11 @@ card style:
z index: 1000
alignment: middle left shrink-overflow
font:
name: Beleren Bold
size: { 13 - shrink_type() }
color: black
name: { type_font() }
italic name: { type_font_italic() }
size: { type_font_size() }
scale down to: 7
color: { type_font_color() }
separator color: red
rarity:
right: { rarity_right() }
@@ -546,14 +570,14 @@ card style:
then "middle center"
else "middle left"
font:
name: MPlantin
italic name: MPlantin-Italic
size: { if styling.rule_text_font_size_cap != "" then to_number(styling.rule_text_font_size_cap) else 13 }
name: { body_font() }
italic name: { body_font_italic() }
size: { body_font_size() }
scale down to: 7
color: { styling.text_color }
color: { body_font_color() }
symbol font:
name: { styling.text_box_mana_symbols }
size: { if styling.rule_text_font_size_cap != "" then to_number(styling.rule_text_font_size_cap) else 13 }
size: { body_font_size() }
scale down to: 7
watermark:
left: 10
@@ -575,9 +599,11 @@ card style:
z index: 1000
alignment: center middle shrink-overflow
font:
name: Beleren Bold
size: 16
color: black
name: { pt_font() }
italic name: { pt_font_italic() }
size: { pt_font_size() }
scale down to: 7
color: { pt_font_color() }
separator color: red
############################################################## Extra card fields