Your message dated Sat, 20 Oct 2018 14:49:43 +0000
with message-id <[email protected]>
and subject line Bug#531489: fixed in ftgl 2.3.0-1
has caused the Debian Bug report #531489,
regarding ftgl-dev: problems with bitmap fonts as textures 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.)
--
531489: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=531489
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ftgl-dev
Version: 2.1.2-3
Severity: normal
Tags: patch
Note: I'm sending this mail both to the FTGL developers as listed in
the README and to the Debian bug tracking system. The patch below
applies to version 2.1.2 (Debian etch), but AFAICS it should also
work with minor adjustments (files moved etc.) to 2.1.3~rc5.
FTGL cannot use bitmap fonts as textures (FTGLTextureFont), only as
FTGLBitmapFont. This is a problem, since unlike textures, bitmaps
cannot be rotated, scaled, etc. in OpenGL.
This applies in particular to 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.)
OpenGL textures cannot be bitmaps AFAICS, but we can convert the
bitmap to a pixmap, which is what the main part of this patch does
(FTTextureGlyph.cpp).
Also I had to adjust the bounding box computation, otherwise we have
a 0-sized bbox since FTBBox.h uses FT_Outline_Get_CBox and we have
no outline here; as a consequence, the various glyphs would overlap
and overwrite each other in the texture. With my patch, it works OK
now.
Furthermore, when trying to use a bitmap font as an FTGLPixmapFont,
it draws garbage. Of course, we could similarly convert the bitmap
to a pixmap here, but a quicker solution is to just use an
FTBitmapGlyph in FTPixmapFont. (Maybe this mixing will be considered
dirty, but at least it seems to work -- patch for FTPixmapGlyph.h,
FTPixmapGlyph.cpp, FTGLPixmapFont.cpp.)
BTW, I note that the font objects (all fonts) seem to lack some
error checking for glyphs. The glyph constructors may return with
"err" set, but the font objects do not check this. I suppose this is
the reason for the garbage drawn. I did not attempt to fix this in
other cases except as necessary for the previous item, though.
Finally, for FTGLBitmapFont objects, I would suggest to remove the
"glDisable( GL_BLEND)" call (patch to FTGLBitmapFont.cpp). Blending
bitmap fonts works well in OpenGL (when a color with alpha < 1 was
set), but this call prevents it. Removing this call leaves the
choice to the caller (who can enable or disable GL_BLEND as
preferred).
ftgl-bitmap.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 ---