Opened 17 months ago

Last modified 17 months ago

#13301 new Patch - Bug Fix

Debian/Ubuntu: Install Droid fonts instead of symlinking.

Reported by: faginbagin Owned by:
Priority: minor Milestone: needs_triage
Component: Packaging Version: v29.1
Severity: medium Keywords: droid fonts symlink
Cc: Ticket locked: no

Description

The packaging/deb scripts create symlinks to Droid fonts that are no longer available on Debian or Ubuntu. However, mythtv already has the Droid fonts under source control and installs them when mythtv is built from source.

The pull request: https://github.com/MythTV/packaging/pull/73 changes the debian/ubuntu packaging to install mythtv's droid fonts instead of relying on fonts that were deprecated two years ago and replaced by dejavu fonts that don't look right. See: https://lists.ubuntu.com/archives/ubuntu-devel/2016-February/039159.html for more background.

When the droid fonts are not installed, themes that depend on them fallback to the dejavu fonts. The dejavu fonts are noticeably wider than the droid fonts and cause information to be lost, like whether a recording was made at 12:00 am or 12:00 pm. To demonstrate, attached are 4 images of the "Watch Recordings" window as seen using two of the official mythtv themes: MythCenter at 800x600 resolution and MythCenter-wide at 1280x720 resolution:

  • mc-dejavu.png - MythCenter fallback to Dejavu fonts
  • mc-droid.png - MythCenter with Droid fonts
  • mcw-dejavu.png - MythCenter-wide fallback to Dejavu fonts
  • mcw-droid.png - MythCenter-wide with Droid fonts

Developers and theme designers may not be aware that users don't see what was intended, because, when you compile and install mythtv from source, you get the fonts, but when you install from .deb packages created using the files in packaging/deb you don't.

Note that other fonts are still symlinked. Should they be?

Attachments (4)

mc-dejavu.png (232.8 KB) - added by faginbagin 17 months ago.
MythCenter? fallback to dejavu font
mc-droid.png (234.6 KB) - added by faginbagin 17 months ago.
MythCenter? wth droid font
mcw-dejavu.png (461.7 KB) - added by faginbagin 17 months ago.
MythCenter?-wide fallback to dejavu font
mcw-droid.png (452.0 KB) - added by faginbagin 17 months ago.
MythCenter?-wide with droid font

Download all attachments as: .zip

Change History (7)

Changed 17 months ago by faginbagin

Attachment: mc-dejavu.png added

MythCenter? fallback to dejavu font

Changed 17 months ago by faginbagin

Attachment: mc-droid.png added

MythCenter? wth droid font

Changed 17 months ago by faginbagin

Attachment: mcw-dejavu.png added

MythCenter?-wide fallback to dejavu font

Changed 17 months ago by faginbagin

Attachment: mcw-droid.png added

MythCenter?-wide with droid font

comment:1 Changed 17 months ago by dizygotheca

My understanding is that the preferred solution is for themes to supply their own fonts (subject to licensing). If Droid Sans (& Liberation Sans) were included in the MythCenter themes then packaging wouldn't need to install them.

See "Face" in https://www.mythtv.org/wiki/MythUI_Theme_Development#Font_definitions

The "Note" at the end refers to the legacy solution of Myth providing some fonts for themes to use (circa 2009). After 2011 themes were supposed to provide their own, to avoid issues such as this. Maybe it's time to start doing it!

comment:2 Changed 17 months ago by faginbagin

The MythCenter themes are "official" themes of mythtv. They are in the mythtv code base, as are the droid fonts they depend on. If you compile and install mythtv from source, the fonts are installed with the themes. It was only if you installed mythtv using binary packages provided by ubuntu or debian-multimedia, for example that the droid fonts were not installed. See: https://github.com/MythTV/mythtv/tree/master/mythtv/themes and take note of the MythCenter, MythCenter-wide and fonts directories.

comment:3 Changed 17 months ago by faginbagin

Added pull request: https://github.com/MythTV/packaging/pull/74 for fixes/0.28

Note: See TracTickets for help on using tickets.