cardmaker icon indicating copy to clipboard operation
cardmaker copied to clipboard

FormattedText bold tag and word spacing issues

Open Remixful opened this issue 2 years ago • 6 comments

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

Remixful avatar Apr 06 '22 04:04 Remixful

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?

nhmkdev avatar Apr 07 '22 01:04 nhmkdev

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.

Remixful avatar Apr 10 '22 17:04 Remixful

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.

nhmkdev avatar Apr 11 '22 13:04 nhmkdev

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

Remixful avatar Apr 11 '22 15:04 Remixful

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

nhmkdev avatar Apr 12 '22 14:04 nhmkdev

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

MarkVabulas avatar Apr 01 '24 05:04 MarkVabulas