Page MenuHome

UI: First Letter invisible/truncated
Closed, ResolvedPublic

Description

MacOS 10.14.3
2017
27"
5K

Blender 2.80

Event Timeline

Not a problem here, might be MAC only?...

@Kent Davis (mac4kent) : not sure why you mention "Edit > Preferences on THEME tab"? Are you saying this only happens when you change a color there? If so which one? So this is not a problem with Factory Settings?
(just checking to find the cause of this...)

I just found out recent. Not worry about THEME.
I think so yes Mac but some time have Windows too I guess.
Interface on Resolution Scale
When drag become small text from big text cause appear "J" when become big text from small text cause disappear "J"
I show you on youtube.
When you see my mouse drag please look out on "J" on Object menu you will notice.
https://youtu.be/b7h8S6g-Vc0

OK, thanx for getting back.
Not familiar with font rendering, maybe @Bastien Montagne (mont29) has an idea? or @Clément Foucault (fclem)?

@Kent Davis (mac4kent): I've noticed in all your bug reports that you attribute any and all your bugs to be Mac-specific. While there may be issues that only manifest themselves with a certain OS, GPU or driver, most bugs in Blender are not platform-related.

Anyway, this specific case is not a Mac issue, but related to using a very different theme, with things at very different scales.

Generally, there has been a bug throughout 2.8 that causes the first letter of text strings to get wrongly cut off:

So I think this is a bug, but not visible in the specific case posted when using the default theme. The bigger issue is the cutting off of the first letter of text strings in general.

@William Reynish (billreynish) : wasnt aware of the "first-letter-gets-cut-off" thingie, has this been reported before?

@Philipp Oeser (lichtwerk) I'm not sure if it has been reported in here, but we were aware of it during code quest.

Philipp Oeser (lichtwerk) triaged this task as Confirmed, Medium priority.Feb 8 2019, 1:17 PM
Philipp Oeser (lichtwerk) renamed this task from Invisible text to UI: First Letter invisible/truncated.Feb 8 2019, 1:21 PM

To reproduce the issue set interface scalling (resolution scale) to 4.0

When UI scale is set to 4x here, I see this:

It's even worse!

But a retina scale of 4x is actually equivalent to 8x (!) UI scaling for peasants with low res screens.

Still, it shows the issue well :)

All of you yes true true trueeeeeee. Many thanks.

I'm trying to figure out what is going on here (I don't have any experience with font rendering yet..)

The issue seems to be that J is the only letter (I could find) with "negative kerning" (how is this called?).

Then this check fails because the letter goes out of bounds: https://developer.blender.org/diffusion/B/browse/master/source/blender/blenfont/intern/blf_glyph.c$507

See xmin.

Possible fixes:

  1. The clip rectangle is wrong, it should be changed.
  2. The kerning of J is wrong.
  3. The intersection test should ignore "negative kerning" (we already ignore the text shadow, so this might not be a big deal).

Not true. Let me tell you. L too https://dev-files.blender.org/file/data/n4vrc5eb2wrlph6wxww7/PHID-FILE-gw5t6du4puovop2x3aaw/Screenshot_2019-02-08_at_12.19.30.png
J and L and other letter. I just copy link and paste this here from above list.

@Kent Davis (mac4kent) do you build blender from source? if not, you need to wait tomorrow for the new build to have this patch included.

@Clément Foucault (fclem) , Yes I agree with you and I will wait to see next day daily build download come soon.

@William Reynish (billreynish) You may check again on Blender 2.80 daily build if you can.
There has been fixed on J and L see picture I take snapshot.
Congratulation fixed and 3 list is pass.


@Jacques Lucke (JacquesLucke)
@Clément Foucault (fclem)
Let's Close the ticket.