Пример #1
0
base_w_center = base_w / 2
base_h_center = base_h / 2
w_marg = 31
h_marg = 36
baserect = [(w_marg, h_marg), (base_w - w_marg, base_h - h_marg)]
textmaxwidth = 689

croprect = (50, 63, 788 + 50, 1088 + 63)

TextHeightThresholds = [363, 378, 600]
TitleWidthThresholds = [50]  #This is in #characters, fix later plox
BarTextThreshold = [500]

fonts = {
    "Title":
    PIL_Helper.BuildFont(ResourcePath + "TSSSFBartholomew-Bold.otf", 55),
    "TitleSmall":
    PIL_Helper.BuildFont(ResourcePath + "TSSSFBartholomew-Bold.otf", 45),
    "Body":
    PIL_Helper.BuildFont(ResourcePath + "TSSSFCabin-Medium.ttf", 35),
    "BodySmall":
    PIL_Helper.BuildFont(ResourcePath + "TSSSFCabin-Medium.ttf", 35),
    "BodyChangeling":
    PIL_Helper.BuildFont(ResourcePath + "TSSSFCabin-Medium.ttf", 31),
    "Bar":
    PIL_Helper.BuildFont(ResourcePath + "TSSSFCabin-Medium.ttf", 38),
    "BarSmall":
    PIL_Helper.BuildFont(ResourcePath + "TSSSFCabin-Medium.ttf", 35),
    "Flavortext":
    PIL_Helper.BuildFont(ResourcePath + "KlinicSlabBookIt.otf", 28),
    "Copyright":
base_h_center = base_h / 2
w_marg = 31
h_marg = 36
baserect = [(w_marg, h_marg), (base_w - w_marg, base_h - h_marg)]
textmaxwidth = 689
base_w_left = (base_w - textmaxwidth) / 2
body_w_left = (base_w - 500) / 2

croprect = (50, 63, 788 + 50, 1088 + 63)

TextHeightThresholds = [363, 378, 600]
TitleWidthThresholds = [50]  # This is in #characters, fix later plox
BarTextThreshold = [500]

fonts = {
    "Title": PIL_Helper.BuildFont(FontsPath + "TSSSFBartholomew-Bold.otf", 55),
    "TitleSmall": PIL_Helper.BuildFont(FontsPath + "TSSSFBartholomew-Bold.otf",
                                       45),
    "Body": PIL_Helper.BuildFont(FontsPath + "TSSSFCabin-Medium.ttf", 35),
    "BodySmall": PIL_Helper.BuildFont(FontsPath + "TSSSFCabin-Medium.ttf", 35),
    "BodyChangeling": PIL_Helper.BuildFont(FontsPath + "TSSSFCabin-Medium.ttf",
                                           29),
    "Bar": PIL_Helper.BuildFont(FontsPath + "TSSSFCabin-Medium.ttf", 38),
    "BarSmall": PIL_Helper.BuildFont(FontsPath + "TSSSFCabin-Medium.ttf", 35),
    "Flavortext": PIL_Helper.BuildFont(FontsPath + "KlinicSlabBookIt.otf", 28),
    "Copyright": PIL_Helper.BuildFont(FontsPath + "TSSSFCabin-Medium.ttf", 18)
}

Anchors = {
    "Blank": (base_w_center, 300),
    "PonyArt": (173, 225),
Пример #3
0
VassalCard = [0]

bleed_w = 788
bleed_h = 1088
w_marg = 31
h_marg = 36
bleedrect = [(w_marg, h_marg), (bleed_w - w_marg, bleed_h - h_marg)]
textmaxwidth = 580
LineM = PIL_Helper.Image.open(ResourcePath + "line_M.png")
LineH = PIL_Helper.Image.open(ResourcePath + "line_H.png")
LineG = PIL_Helper.Image.open(ResourcePath + "line_G.png")
LineS = PIL_Helper.Image.open(ResourcePath + "line_S.png")
titlefont = ResourcePath + "ComicNeue-Regular.ttf"
titleboldfont = ResourcePath + "ComicNeue-Bold.ttf"
symbolfont = ResourcePath + "Eligible-Regular.ttf"
TitleFont = PIL_Helper.BuildFont(titleboldfont, 60)
SymbolFont = PIL_Helper.BuildFont(symbolfont, 150)
BigSymbolFont = PIL_Helper.BuildFont(symbolfont, 200)
ValueFont = PIL_Helper.BuildFont(symbolfont, 90)
RulesFont = PIL_Helper.BuildFont(titlefont, 50)
TypeFont = PIL_Helper.BuildFont(titleboldfont, 70)
GenreFont = PIL_Helper.BuildFont(titleboldfont, 50)
FlavorFont = PIL_Helper.BuildFont("BaBOC/resources/KlinicSlabBookIt.otf", 40)
CopyFont = PIL_Helper.BuildFont("BaBOC/resources/Barth_Regular.ttf", 10)
TypeAnchor = (bleed_w / 2 + 70, 50)
TitleAnchor = (80, 60)
FormTitleAnchor = (80, -60)
SymbolAnchor = (80, -100)
RulesAnchor = (bleed_w / 2 + 70, 650)
OneLineAnchor = (bleed_w / 2 + 70, 160)
TwoLineAnchor = (bleed_w / 2 + 70, 220)