Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text does not align to bottom of line when mixing fonts #156

Open
wholton opened this issue May 26, 2024 · 1 comment
Open

Text does not align to bottom of line when mixing fonts #156

wholton opened this issue May 26, 2024 · 1 comment
Labels

Comments

@wholton
Copy link

wholton commented May 26, 2024

Describe the bug
I would expect fonts to align towards the bottom of a given new line. Instead, when mixing fonts, it has the effect of some needing to be pushed to align properly. Here's the formatting template I have applied around the keywords, with the push:

afb,<f=Slider TI4;39><push=0;19>ANTI-FIGHTER BARRAGE<push=0;-19></f>
bombardment,<f=Slider TI4;39><push=0;19>BOMBARDMENT<push=0;-19></f>
spacecannon,<f=Slider TI4;39><push=0;19>SPACE CANNON<push=0;-19></f>

and where they are referenced:

<b>After another player makes <br>a @[bombardment], @[spacecannon], or @[afb] roll:</b>@[timingEffectBreak]<f=Myriad Pro Light;50>That player rerolls all of their dice.</f>

Desktop (please complete the following information):

  • OS: Windows 11
  • Version: CardMaker 1.4.0.0 A4

Screenshots
Here's a screen shot if I do not apply the push:
image

@wholton wholton added the bug label May 26, 2024
@nhmkdev
Copy link
Owner

nhmkdev commented May 26, 2024

One of the original reasons push was added was for this exact reason. The .NET font renderer I am using did not have anything too obvious to help align text of different fonts on the same "line" so they render however the given font was setup.

I'll add revisiting this to my todo list and hope there is something that can help with this. 🧐

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants