Opened 3 years ago

Closed 3 years ago

#13041 closed bug (invalid)

Antialiasing of vertical text introduces white background

Reported by: n3s Owned by: waddlesplash
Priority: low Milestone: Unscheduled
Component: Preferences/Appearance Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

Version: hrev50629

BFont font; font.SetRotation(90.0); SetFont(&font, B_FONT_ROTATION); DrawString(strScore.ToString(), pos);

https://herzig-net.de/prog/haiku/trac/Antialising_vertical_text.png

Change History (4)

comment:1 by n3s, 3 years ago

In the screenshots, the text "Score: 0" is drawn with a white background inside of the letters. Compare the letters O and C and the number 0 on the right side of the above picture.

comment:2 by pulkomandy, 3 years ago

It looks like there is a mismatch between your low and view colors. In BeOS this didn't matter, drawing text without antialiasing used only the high color.

SetLowColor(ViewColor()) or SetViewColor(LowColor()) should fix it.

comment:3 by n3s, 3 years ago

You are right, the dark gray area was filled in using FillRect() with a HighColor, LowColor was never set.

comment:4 by Janus, 3 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.