Opened 6 years ago

Closed 6 years ago

#11786 closed Bug Report - General (Fixed)

Font outline and shadow aren't scaled with screen res

Reported by: stuartm Owned by: Jim Stichnoth
Priority: minor Milestone: 0.27
Component: MythTV - User Interface Library Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

If the screen resolution is 2x the theme base resolution then font size is correct scaled 2x, but attributes such as outline and shadow remain at their original values. This seems to be an oversight.

Change History (5)

comment:1 Changed 6 years ago by Jim Stichnoth

It looks like this is only the case for MythUISimpleText, which is used only for captions/subtitles. Other uses of outline and shadow correctly apply MythRect::NormPoint?() on the values.

One possible nit is that NormPoint?() truncates fractional values, whereas it might be better to round.

comment:2 Changed 6 years ago by Jim Stichnoth

Milestone: 0.270.27.1
Owner: changed from stuartm to Jim Stichnoth
Status: newaccepted

This is related to work in progress on #10984.

comment:3 Changed 6 years ago by Jim Stichnoth <jstichnoth@…>

In 38fc18b4432201e4d047dad9228c37a2cde14f5c/mythtv:

Subtitles: Scale shadowoffset and outlinesize according to zoom factor.

This makes zoom-factor scaling look more consistent.

In addition, scale offset and outline according to the theme base
resolution. Refs #11786.

comment:4 Changed 6 years ago by Jim Stichnoth <jstichnoth@…>

In bd3a1dab1c27dac105a92f7eef65b0d5cda74b16/mythtv:

Subtitles: Scale shadowoffset and outlinesize according to zoom factor.

Cherry-picked from 38fc18b44. Refs #11786.

comment:5 Changed 6 years ago by Jim Stichnoth

Milestone: 0.27.10.27
Resolution: Fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.