Bug 249136

Summary: print/freetype2: enable PNG by default (for color emoji fonts)
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: freebsd-desktop (Team) <desktop>
Status: Closed FIXED    
Severity: Affects Only Me CC: sunpoet, tcberner
Priority: --- Keywords: patch
Version: LatestFlags: tcberner: maintainer-feedback+
Hardware: Any   
OS: Any   
Attachments:
Description Flags
v1 tcberner: maintainer-approval+

Description Jan Beich freebsd_committer freebsd_triage 2020-09-06 00:12:44 UTC
Created attachment 217778 [details]
v1

x11-fonts/noto-emoji requires PNG to render "Noto Color Emoji". When fontconfig is forced to pick the color font (avoid monochrome fallback) emojis are rendered as empty space (not even tofu).

Inspired by https://twitter.com/gumnos/status/1302227336453128194

Tested with www/firefox and x11/alacritty.
Alpine, Arch, Fedora, Debian, Mageia, openSUSE, Void do enable libpng support.
Comment 1 Tobias C. Berner freebsd_committer freebsd_triage 2020-09-06 06:06:01 UTC
Comment on attachment 217778 [details]
v1

LGTM, thanks.
Comment 2 commit-hook freebsd_committer freebsd_triage 2020-09-08 00:53:19 UTC
A commit references this bug:

Author: jbeich
Date: Tue Sep  8 00:52:49 UTC 2020
New revision: 547954
URL: https://svnweb.freebsd.org/changeset/ports/547954

Log:
  print/freetype2: enable PNG by default

  Required by x11-fonts/noto-emoji for colored emoji. PNG unlike SVG is
  compatible with many freetype2 consumers.

  PR:		249136
  Approved by:	tcberner

Changes:
  head/print/freetype2/Makefile