Your message dated Sat, 20 Oct 2018 14:49:43 +0000
with message-id <[email protected]>
and subject line Bug#589601: fixed in ftgl 2.3.0-1
has caused the Debian Bug report #589601,
regarding libftgl2: problems with bitmap fonts etc.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
589601: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=589601
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libftgl2
Version: 2.1.3~rc5-3
Severity: normal
Tags: patch

*** Please type your report below this line ***

Most of this report corresponds to Debian bug #531489, with my
patches updated to the current FTGL version in Debian testing.

1. FTPolygonGlyph and FTOutlineGlyph segfault when given a font of a
   wrong type, e.g. a bitmap type. This is because vectorizer is
   uninitialized, and the constructor in this case returns before
   setting it.

   My patch (FTPolygonGlyph.cpp, FTOutlineGlyph.cpp) adds the
   initialization (copied from FTExtrudeGlyph) and prevents the
   crashing.

2. FTPixmapGlyph also doesn't check whether its impl is valid, which
   it would not be, again, in case of a bitmap type. In this case,
   it doesn't crash (in my tests), but draws garbage.

   The patch (FTBitmapGlyphImpl.h, FTPixmapGlyph.h,
   FTPixmapGlyph.cpp) adds this check, and in this case just creates
   an FTBitmapGlyphImpl and delegates the work to it.

   Also I add a check in FTPixmapGlyphImpl for the case of
   "num_grays == 1" which is valid according to the specification,
   though it might occur rarely. In this case, the font is
   effectively a bitmap, and is treated as such.

3. FTBitmapFontImpl disables GL_BLEND. While, of course, it does not
   need to enable it, unlike e.g. pixmap fonts, I don't think it's
   useful to disable it unconditionally, instead of leaving the
   choice to the caller.

   The patch (FTBitmapFont.cpp) removes the disabling. If the caller
   doesn't explicitly set GL_BLEND, nothing changes, but if they set
   it, and set a color with alpha < 1, bitmap fonts can now be drawn
   with transparency.

4. Bitmap fonts cannot be used as FTGLTextureFont, which is a
   serious disadvantage, since unlike textures, bitmaps cannot be
   rotated, scaled, etc. in OpenGL. This in particular affects X11
   .pcf fonts. It might also apply to TrueType fonts with embedded
   bitmaps: When googling for the problem, I found this message on
   the FreeType list:
   http://osdir.com/ml/fonts.freetype.devel/2005-03/msg00091.html
   It might refer to the same problem, so the diagnosis offered in
   the reply might apply to FTGL which was used there as well.

   The patch (FTTextureGlyph.cpp) converts bitmaps to pixmaps in
   FTTextureGlyphImpl, so they can be used now.

5. (New issue, not in #531489)

   FTContour::ComputeOutsetPoint computes an invalid point
   (-nan, -nan), when two edges form an angle of nearly 180°.
   (I'm not sure if this is somehow invalid according to the spec,
   but it actually occurs, e.g., with the "F" character in the font
   "El Abogado Loco" as installed in squeeze.) This is because
   norm + tmp.X() goes to 0, and therefore the fraction to infinity,
   when the angle approaches 180°. It is not merely a numeric
   problem, but the intersection point actually goes to infinity.
   The visible effect is that drawing such glyphs creates some
   spurious lines to the edge of the visual (even if Outset is not
   used, because 0 * inf is nan, so it's a regression compared to
   previous versions that didn't have Outset).

   Since it's an actual geometric problem, there is no obvious
   numeric solution. In my patch (FTContour.cpp), I just limit the
   outset point's distance (which also avoids ugly results, when the
   angle is just somewhat close to 180°, where there is no numeric
   problem yet, but the outset point would be very far away from
   A, B and C). Another solution might be to insert two outset
   points instead of one, say when the angle is > 90° (or < -90°),
   but that would be a bigger change.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.34 (SMP w/1 CPU core)
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages libftgl2 depends on:
ii  libc6                   2.11.2-2         Embedded GNU C Library: Shared lib
ii  libfreetype6            2.4.0-1          FreeType 2 font engine, shared lib
ii  libgcc1                 1:4.4.4-6        GCC support library
ii  libgl1-mesa-glx [libgl1 7.7.1-3          A free implementation of the OpenG
ii  libglu1-mesa [libglu1]  7.7.1-3          The OpenGL utility library (GLU)
ii  libstdc++6              4.4.4-6          The GNU Standard C++ Library v3
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

libftgl2 recommends no packages.

libftgl2 suggests no packages.

-- no debconf information

Attachment: ftgl.patch
Description: Binary data


--- End Message ---
--- Begin Message ---
Source: ftgl
Source-Version: 2.3.0-1

We believe that the bug you reported is fixed in the latest version of
ftgl, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Manuel A. Fernandez Montecelo <[email protected]> (supplier of updated ftgl 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 20 Oct 2018 15:54:55 +0200
Source: ftgl
Binary: libftgl-dev libftgl2
Architecture: source amd64
Version: 2.3.0-1
Distribution: experimental
Urgency: medium
Maintainer: Sam Hocevar <[email protected]>
Changed-By: Manuel A. Fernandez Montecelo <[email protected]>
Description:
 libftgl-dev - development files for libftgl
 libftgl2   - library to render text in OpenGL using FreeType
Closes: 531489 589601 742469 760571 887712
Changes:
 ftgl (2.3.0-1) experimental; urgency=medium
 .
   * New upstream release
     - Closes: #531489, #589601, #742469, #760571
     - drop patch patch-ftglgetlayoutbbox-typo.diff, applied upstream
     - edit patch fix-pdf-generation to not include Makefile.in, which does
       not exist in this new release, and Makefile.am which changed slightly
     - refresh patch patch-relibtoolize-prep.diff
     - add enable-docs.patch to build docs by default
   * Add substitute-freetype-config.patch for new versions of freetype
     which do not ship freetype-config (Closes: #887712)
   * Add Build-Depends on pkg-config
Checksums-Sha1:
 5643c7e9477e4cdf63ec10018e5ea3eeb25bdde3 2126 ftgl_2.3.0-1.dsc
 1749e50e6dfbaf918d89be625ff8b5777a4e75fa 526772 ftgl_2.3.0.orig.tar.xz
 3935b6d3554f89e80565e87feae6a26720412bfa 6104 ftgl_2.3.0-1.debian.tar.xz
 53f876b1777d6eff33836c62585d92fe11ff4fcd 12014 ftgl_2.3.0-1_amd64.buildinfo
 fbe5e23af9814a2c318339472a5710dac79b40f7 1074832 libftgl-dev_2.3.0-1_amd64.deb
 b83b1f7d67038462fcd02f14b9653fbd79b89cb1 440020 
libftgl2-dbgsym_2.3.0-1_amd64.deb
 0f7ea81ce4c7ff6bc3ba71b2995555f486743da0 109232 libftgl2_2.3.0-1_amd64.deb
Checksums-Sha256:
 ff9d271db84d337a2a514701092cad516faac23b7b77653e6ac14e2597fe3f78 2126 
ftgl_2.3.0-1.dsc
 13642bd725b6244c3a4b7a2a7831d63c776152f165f14c4c1a21e1bb0d5e6359 526772 
ftgl_2.3.0.orig.tar.xz
 becf6c1a283b47c68ac10f7d2eec1332f9b302ee5dbfac2ca8dc9f98bf0caade 6104 
ftgl_2.3.0-1.debian.tar.xz
 3741de597f83a420f02820774976a1f8910ca787a9bf7e8092be7e8a2d9e4605 12014 
ftgl_2.3.0-1_amd64.buildinfo
 df08e6258584c99b26db8a1fc8776f3e4a7c404a062c3e34fdc4f9e742c94a10 1074832 
libftgl-dev_2.3.0-1_amd64.deb
 9884c1b4ab0125d58e48124b225259fc4b044f01cf92766680539dff38751cb1 440020 
libftgl2-dbgsym_2.3.0-1_amd64.deb
 1cafee267450653ab4e6aa21effa02ae5d024f4318e11a7db0639e28e55c190f 109232 
libftgl2_2.3.0-1_amd64.deb
Files:
 c2315d3c52de2ad224f21e4eab0ef3d7 2126 libs optional ftgl_2.3.0-1.dsc
 98ce9b75e1d649d34106e04bc34321e2 526772 libs optional ftgl_2.3.0.orig.tar.xz
 d443dbd2eb5580f399f93b5fd1cf34e3 6104 libs optional ftgl_2.3.0-1.debian.tar.xz
 ec26fe5337f03591a0af1bcce4922295 12014 libs optional 
ftgl_2.3.0-1_amd64.buildinfo
 96f5175d2fbc6bc054e6e9bdb4544aca 1074832 libdevel optional 
libftgl-dev_2.3.0-1_amd64.deb
 61af626b14c79c5228f59415f4f7381f 440020 debug optional 
libftgl2-dbgsym_2.3.0-1_amd64.deb
 371945294b9752d69e4b80570e7179a5 109232 libs optional 
libftgl2_2.3.0-1_amd64.deb

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCgAuFiEEKo6AUFxIYphDDdCTf3YGpEXcqA4FAlvLNBAQHG1hZm1AZGVi
aWFuLm9yZwAKCRB/dgakRdyoDpPND/wJFyHSF0kClPTaC/q8xxev4DPMvXnLh+5z
eCsviseBg2Kmdw7BcMJXuyLpVlgFGkiUJK7lTuu0uVzz59t/AsqLQTmiynbBFirZ
0KbVGyYmBDiHkuAUSOwOlSVeeJs8SurQ0XUto/km2o2yByXtHPjGtrFq6/JFvYpD
VZ2dZVwYU9jZvOXvz9TrTIWmGH0yp6ybMeWq2cPmF6231ADyWtUTT0nkDuZGcL1/
Sdf7q4cFP+6nKoHjRV2G0RALwb7D4MzSzYgfLZPPirE84eGRYud6vAu21R0E+oen
ntiU9l279jJ01/0bpe+++REEA3SF2WjRsMWjerUMxraZrPWE3Rzhh9xByLdotE3l
cHUegielQy8Ns3REW2nj/N2d+YvFTkrKc5AGUE4ec2542SPb72jTpGlDUp18eSpx
o3rwWrpSBW/30FcTrprjw/hPdgp4bLen+IwXFnKV5CLZHNL7KTcZdFRr/jVpialS
OcfkSgEgcyNYmoKS9rokqXPHUqzMOcutOnV7P7T6kiMvHXl87OXh8GOeFx0IJh5l
1LhS54cunglMljDcbxJ4h9N3cGgz3+SGXz1EkMz6G36gyj0EpRDsCOWp/LCTqsTw
8B/J3Yc4I2cts0JCj+mFnZXYCFgemtpS577BCYXWrPfjNer6l5MU9IdwqkvGhvsA
ohALr0M3pg==
=9lN5
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to