Bug 141251 - kcmfontinst displays OpenType fonts (as shipping with Acroread 7) fine, but does not print them
Summary: kcmfontinst displays OpenType fonts (as shipping with Acroread 7) fine, but d...
Status: RESOLVED FIXED
Alias: None
Product: kcontrol
Classification: Miscellaneous
Component: kcmfontinst (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Craig Drummond
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-06 02:07 UTC by Kurt Pfeifle
Modified: 2011-06-30 19:11 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt Pfeifle 2007-02-06 02:07:10 UTC
Version:            (using KDE KDE 3.5.6)
Installed from:    SuSE RPMs

On the system I can currently use, "kcmshell kcmfontinst" shows and previews 3 type of fonts in admin mode: PostScript Type 1, TrueType and OpenType.

The OpenType fonts were installed as part of an Acrobat Reader 7 package. They reside as .odt in /usr/X11R6/lib/Acrobat7/Resource/Font/.

Trying to print samples of those (or convert them into PDF) from kcmfontinst does only produce an empty page.


[ Additional info: I've not yet had the time to test if f.e. KWord can use & print an .oft
  font. I wouldn't be surprised if it failed, because it relies exclusively on Qt for 
  generating PS for printing. But Qt in turn only knows about PostScript Level 1 -- and at 
  the time when PS L 1 was designed, OpenType fonts were still music of the future.

  So it may not be a specific kcmfontinst bug after all, but a very generic KDE3 bug.

  I'll report this nevertheless now so it does get lost on me, since I may need to give 
  back on Friday the computer I'm using right now, and may be facing a 4-week Linux-less 
  period... :-|   ]
Comment 1 Craig Drummond 2007-02-06 10:11:13 UTC
Well kcmfontinst's print functionality is *very* basic, and relies upon Qt to do *all* the work. All kcmfontinst does is ask Qt for the specific font (and even here it can fail, as there is no way to be 100% sure its the correct one!), and then ask Qt to draw some strings. So if something is going wrong, then I'd think its more likeley to be a Qt issue.
Comment 2 Kurt Pfeifle 2007-02-06 10:25:17 UTC
So it looks like a generic KDE3/Qt3 bug (or hole in functionality)...

I just ran 

  strings /opt/kde3/lib/kde3/kcm_fontinst.so|grep otf
  application/x-font-otf
  application/x-font-ttf application/x-font-otf application/x-font-ttc application/x-font-type1 application/x-font-pcf application/x-font-bdf

and hoped, from this result, that there may be some more+better OpenType font support for us. After all, kfontinst seems to support the on-screen *display* of all these fonts just fine, so "why no printing?" may be what users will ask.

BTW, Adobe stopped selling any other type of font than OpenType, and they also do no longer sell support contracts for Type 1 and other font formats they invented. They are trying to make as much customers as possible to "upgrade" to OFT by offering special rebates for existing Type 1 (and other) licensees.

I think we need to have thorough OFT support in KDE4 (and have it possibly backported as well); but I have no idea how well current Qt4 supports OFT... (may be a none-issue even).
Comment 3 Craig Drummond 2011-06-27 18:39:48 UTC
Git commit c8e39d6ace6a5a59ba3e655e1caf7d9aa75477e0 by Craig Drummond.
Committed on 27/06/2011 at 20:20.
Pushed by craig into branch 'KDE/4.6'.

BUG:141251 Fix printing of symbol fonts.

M  +132  -21   kcontrol/kfontinst/apps/Printer.cpp     
M  +60   -3    kcontrol/kfontinst/lib/FcEngine.cpp     

http://commits.kde.org/kde-workspace/c8e39d6ace6a5a59ba3e655e1caf7d9aa75477e0
Comment 4 Craig Drummond 2011-06-27 18:39:49 UTC
Git commit 3d2f81f12b09d862c600c6d860efd5566d724b31 by Craig Drummond.
Committed on 27/06/2011 at 20:24.
Pushed by craig into branch 'KDE/4.7'.

BUG:141251 Fix printing of symbol fonts.

M  +132  -21   kcontrol/kfontinst/apps/Printer.cpp     
M  +60   -3    kcontrol/kfontinst/lib/FcEngine.cpp     

http://commits.kde.org/kde-workspace/3d2f81f12b09d862c600c6d860efd5566d724b31
Comment 5 Craig Drummond 2011-06-27 18:39:49 UTC
Git commit 571b71afa3b6c45c27388e2418505a617585589e by Craig Drummond.
Committed on 27/06/2011 at 20:26.
Pushed by craig into branch 'master'.

BUG:141251 Fix printing of symbol fonts.

M  +132  -21   kcontrol/kfontinst/apps/Printer.cpp     
M  +60   -3    kcontrol/kfontinst/lib/FcEngine.cpp     

http://commits.kde.org/kde-workspace/571b71afa3b6c45c27388e2418505a617585589e
Comment 6 Christoph Feck 2011-06-29 02:12:21 UTC
Git commit 242a8a641045929c833576e581768e743bb49bbf by Christoph Feck.
Committed on 29/06/2011 at 04:09.
Pushed by cfeck into branch 'master'.

SVN_SILENT link

Craig, please backport to 4.6 and 4.7 branch, if these branches
require linking to libfreetype, too.
CCBUG: 141251

M  +1    -1    kcontrol/kfontinst/apps/CMakeLists.txt     

http://commits.kde.org/kde-workspace/242a8a641045929c833576e581768e743bb49bbf
Comment 7 Craig Drummond 2011-06-30 19:11:20 UTC
Git commit beed22e138ab13dccd81790384c6d247fe9a2259 by Craig Drummond.
Committed on 30/06/2011 at 20:56.
Pushed by craig into branch 'KDE/4.6'.

Link to freetype.
CCBUG: 141251

M  +1    -1    kcontrol/kfontinst/apps/CMakeLists.txt     

http://commits.kde.org/kde-workspace/beed22e138ab13dccd81790384c6d247fe9a2259
Comment 8 Craig Drummond 2011-06-30 19:11:20 UTC
Git commit 42ff6a5667832434ff69c9362fa5f22d7edce49a by Craig Drummond.
Committed on 30/06/2011 at 20:59.
Pushed by craig into branch 'KDE/4.7'.

Link to freetype.
CCBUG: 141251

M  +1    -1    kcontrol/kfontinst/apps/CMakeLists.txt     

http://commits.kde.org/kde-workspace/42ff6a5667832434ff69c9362fa5f22d7edce49a