Proxyshop icon indicating copy to clipboard operation
Proxyshop copied to clipboard

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

Open HelixVita opened this issue 2 years ago • 1 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

HelixVita avatar Aug 27 '22 09:08 HelixVita

Additional example 1 image

Additional example 2 image

HelixVita avatar Aug 27 '22 15:08 HelixVita

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
    )
)

Investigamer avatar Dec 22 '22 13:12 Investigamer