From owner-freebsd-gnome@freebsd.org Thu Jun 8 11:31:46 2017 Return-Path: Delivered-To: freebsd-gnome@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 22EE2BFC75E for ; Thu, 8 Jun 2017 11:31:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 0A4397E2A6 for ; Thu, 8 Jun 2017 11:31:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 06C28BFC75D; Thu, 8 Jun 2017 11:31:46 +0000 (UTC) Delivered-To: gnome@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 04778BFC75C for ; Thu, 8 Jun 2017 11:31:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D82ED7E2A5 for ; Thu, 8 Jun 2017 11:31:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v58BVjVF082780 for ; Thu, 8 Jun 2017 11:31:45 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: gnome@FreeBSD.org Subject: [Bug 219608] print/freetype2 produces incorrect line spacing for some fonts Date: Thu, 08 Jun 2017 11:31:45 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: lightside@gmx.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnome@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2017 11:31:46 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219608 lightside changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #183254|0 |1 is obsolete| | --- Comment #22 from lightside --- Created attachment 183327 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D183327&action= =3Dedit Screenshots for mate-terminal (DejaVu Sans Mono Book, 14) I found what font was used in "About SciTE" dialog (editors/scite), which showed some issues (in comment #21). It was "DejaVu Serif Book, 14". This was found in scite/src/Credits.cxx file for following function: void SciTEBase::SetAboutMessage(GUI::ScintillaWindow &wsci, const char *appTitle) and related code: wsci.CallString(SCI_STYLESETFONT, STYLE_DEFAULT, "Serif"); int fontSize =3D 14; where -8<-- % fc-match Serif DejaVuSerif.ttf: "DejaVu Serif" "Book" -->8- The DejaVuSerif.ttf was installed by x11-fonts/dejavu port and x11-fonts/xorg-fonts-truetype port depends from it. -8<-- % pkg which -o /usr/local/share/fonts/dejavu/DejaVuSerif.ttf /usr/local/share/fonts/dejavu/DejaVuSerif.ttf was installed by package x11-fonts/dejavu -->8- Possible to test "DejaVu Sans Mono Book, 14" for mate-terminal, installed by the same port: -8<-- % pkg which -o /usr/local/share/fonts/dejavu/DejaVuSansMono.ttf /usr/local/share/fonts/dejavu/DejaVuSansMono.ttf was installed by package x11-fonts/dejavu -->8- I attached archive with new screenshots, which shows the difference: decrea= sed line spacing (compared to 2.7.1 version), in my case. This may mean, that t= here are other differences between 2.7.1 and 2.8 version, based on used fonts (i= .e., the patch in attachment #183237 doesn't work for all cases, if the same res= ult needed, as in 2.7.1 version). As about other testing methods, I created something like follows, based on pango-view usage (x11-toolkits/pango), but not sure, if this is correct met= hod: pango-font.sh: -8<-- #!/bin/sh font=3D"Monospace Sans Serif" dpi=3D"72 96" size=3D"11 12 13 14" backend=3D"cairo ft2" text=3D"The quick brown fox jumps over the lazy dog" texts=3D`printf "${text}\n${text}\n${text}"` if [ -n "$1" ]; then if ! [ -d "$1" ]; then mkdir -p "$1" fi echo Output directory: $1 cd "$1" fi for f in ${font}; do for d in ${dpi}; do for s in ${size}; do for b in ${backend}; do pango-view -q --backend=3D"${b}" --dpi=3D"${d}" --font=3D"${f} ${s}= " -t "${texts}" -o "${f}-${b}-${s}-${d}dpi.png" done done done done sha256 *.png > checksums.txt -->8- pango-waterfall.sh -8<-- #!/bin/sh font=3D"Monospace Sans Serif" dpi=3D"72 96" backend=3D"cairo ft2" text=3D"The quick brown fox jumps over the lazy dog" if [ -n "$1" ]; then if ! [ -d "$1" ]; then mkdir -p "$1" fi echo Output directory: $1 cd "$1" fi for f in ${font}; do for d in ${dpi}; do for b in ${backend}; do pango-view -q --backend=3D"${b}" --waterfall --dpi=3D"${d}" --font= =3D"${f}" -t "${text}" -o "${f}-${b}-${d}dpi.png" done done done sha256 *.png > checksums.txt -->8- Then possible to use such scripts to check visual differences and/or checks= ums (but they maybe different between runs, while visually almost the same, somehow). --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=