Bug 278852

Summary: x11-fonts/juliamono: xft issue with 0.055 update
Product: Ports & Packages Reporter: Harald Schmalzbauer <bugzilla.freebsd>
Component: Individual Port(s)Assignee: Daniel Engberg <diizzy>
Status: Closed FIXED    
Severity: Affects Some People CC: diizzy, trueos
Priority: --- Flags: trueos: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
pkg-message to hint about color glyph problems with xterm/urxvt
none
Update patch with corrected pkg-message trueos: maintainer-approval+, trueos: maintainer-approval+

Description Harald Schmalzbauer 2024-05-08 10:46:10 UTC
Created attachment 250528 [details]
pkg-message to hint about color glyph problems with xterm/urxvt

Hi,
with the latest update, most fonts of this package can't be used in xterm(1) and urxvt(1) 
anymore, which was not a problem with version 0.054.

Error:
xterm: unable to open font "", trying "fixed"....
X Error of failed request:  BadLength (poly request too large or internal Xlib length error)
  Major opcode of failed request:  139 (RENDER)
  Minor opcode of failed request:  20 (RenderAddGlyphs)
  Serial number of failed request:  88
  Current serial number in output stream:  897

According to similar problems with noto-ColorEmoji fonts, the reason apparently is the upstream fix for https://github.com/cormullion/juliamono/issues/201 in 0.055 (adding color glyph).

None of the Qt5 and GTK3 based apps which I tested are affected (kate, gedeit)! 

And the 'Latin' version still works in xterm(1) e.g., but the difference might be not that obvious to everybody.
Maybe the the attached pkg-message helps people who update or browse fonts for their xterm...
Comment 1 Trenton Schulz 2024-05-08 13:39:20 UTC
Comment on attachment 250528 [details]
pkg-message to hint about color glyph problems with xterm/urxvt

Ouch! Thanks for noticing this and explaining why. I agree that this note should probably be added. Maybe use "etc." instead of "e.g." in the pkg-message, but the message is clear.
Comment 2 Harald Schmalzbauer 2024-05-12 09:33:19 UTC
(In reply to Trenton Schulz from comment #1)

Do you resp. can you commit?  Replacing e.g. with etc is much better - please adjust, whoever can commit. Thanks!
Comment 3 Trenton Schulz 2024-05-12 19:10:47 UTC
Created attachment 250603 [details]
Update patch with corrected pkg-message

Updated patch with improved pkg-message text.
Comment 4 commit-hook freebsd_committer freebsd_triage 2024-06-06 19:08:42 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=870bc238ed74376edc082f74d155e0b460d45dd4

commit 870bc238ed74376edc082f74d155e0b460d45dd4
Author:     Trenton Schulz <trueos@norwegianrockcat.com>
AuthorDate: 2024-06-06 13:10:09 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-06-06 19:05:48 +0000

    x11-fonts/juliamono: Add notice regarding compatibility with color glyphs

    Some applications don't support color plyphs and throws errors, add
    a notice of a workaround for users if they run into compatibility
    issues.

    PR:             278852
    Reported by:    Harald Schmalzbauer <bugzilla.freebsd@omnilan.de>

 x11-fonts/juliamono/Makefile          | 1 +
 x11-fonts/juliamono/pkg-message (new) | 7 +++++++
 2 files changed, 8 insertions(+)
Comment 5 Daniel Engberg freebsd_committer freebsd_triage 2024-06-06 19:22:06 UTC
Committed, thanks!