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

FormattedText bold tag and word spacing issues #103

Open
Remixful opened this issue Apr 6, 2022 · 6 comments
Open

FormattedText bold tag and word spacing issues #103

Remixful opened this issue Apr 6, 2022 · 6 comments

Comments

@Remixful
Copy link

Remixful commented Apr 6, 2022

I'm getting some strange behavior with FormattedText and long words.
You'll also get different results (characters spread out or are shift closer together) when increasing or decreasing the font size.
I also have problems with some characters overlapping bolded characters (like in the last line in the picture).

<b>thistextisvery bold</b>\nthistextisnotveryveryveryvery bold\n<b>this text is very bold too</b>\nthis is also <b>bold</b>!

image

@nhmkdev
Copy link
Owner

nhmkdev commented Apr 7, 2022

Hmm are you using any windows scaling functionality (display settings)?

This is how it looks for me with 100% scaling.
CardMaker_Bold

Weird test: what does the exported version look like?

@Remixful
Copy link
Author

Remixful commented Apr 10, 2022

I have windows 10 and here are my display settings if this is what you mean:
image
The exported image looks exactly as it does in the editor.

@nhmkdev
Copy link
Owner

nhmkdev commented Apr 11, 2022

It look like you have the outline thickness set to 1. When I adjusted mine I saw the result you have. Can you switch it to 0? Outline has no impact on spacing.

@Remixful
Copy link
Author

Ohh, I see now. The letters shift around as soon as I set it to 1. Would it be possible to fix? I think the outline makes my text look sharper and easier to read, when it's not bugging out.

image

@nhmkdev
Copy link
Owner

nhmkdev commented Apr 12, 2022

I'm not actually sure if it's possible to fix it and guarantee a good result. Bold in particular with and outline really messes up the spacing. I'll have to check it out. Letter spacing might be the next level of configurable setting.

The image in last reply is generally the use I've gone with and has looked fine (depending on the font).

@MarkVabulas
Copy link
Contributor

I've noticed that the preview sometimes has weird spacing but when I go to export, it comes out looking perfectly. I don't know if I consider this to be a bug, just an artifact of trying to render real-time and possibility at lower fidelity?

Here's some examples, in order, of preview followed by output.

condensed

normal

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

No branches or pull requests

3 participants