Investigamer/Proxyshop

Bug: [[Strategic Planning]] — When using bold rules text, the non-italicized part of the flavor is also bold

Closed this issue · 2 comments

Describe the bug
This one's a bit of an edge case, so prioritize accordingly.

To Reproduce

  • Step 1: Enable bold font for rules text in the plugin's templates.py thus:
def __init__(self, layout):
    super().__init__(layout)
    con.font_rules_text = "MPlantin-Bold"
  • Step 2: Render the PTK version of the card [[Strategic Planning]] (or presumably any card which has some non-italicized text in the flavor text)

Your system:

  • Python version: 3.8
  • Windows version: 11
  • Photoshop version: 23.5.0
  • Proxyshop version: v1.1.8

Screenshots
Intended effect on left. Proxyshop render on right.
image

Additional example 1
image

Additional example 2
image

This feature has been added in v1.2.0, you can now pass bold_rules_text as True in the rules text layer object!

self.text.append(
    text_classes.FormattedTextArea(
        layer = self.text_layer_rules,
        contents = self.layout.oracle_text,
        flavor = self.layout.flavor_text,
        reference = psd.getLayer(con.layers['TEXTBOX_REFERENCE'], self.text_layers),
        divider = psd.getLayer(con.layers['DIVIDER'], self.text_layers),
        centered = self.is_centered,
        bold_rules_text = True
    )
)