Character 101 (0x65) not found in /usr/share/fonts/truetype/freefont/FreeSans.ttf

Bug #615078 reported by Darxus
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
povray (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: povray

The text object isn't working with /usr/share/fonts/truetype/freefont/FreeSans.ttf. Used to work - taken from an old .pov file of mine.

$ povray +ifonttest.pov +ofonttest.png

is saying:

Parse Warning: Character 101 (0x65) not found in /usr/share/fonts/truetype/freefont/FreeSans.ttf
File: fonttest.pov Line: 8
Parse Warning: Character 115 (0x73) not found in /usr/share/fonts/truetype/freefont/FreeSans.ttf

These are ascii characters "e" and "s".

Same problem with /usr/share/fonts/truetype/freefont/FreeSerif.ttf

Should produce fonttest.png file with the word "test", but is instead producing an image with missing character placeholders.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: povray 1:3.6.1-12
ProcVersionSignature: Ubuntu 2.6.32-24.39-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Sun Aug 8 13:55:46 2010
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
LiveMediaBuild: PTS Desktop Live 2010.1 (Anzhofen)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: povray

Revision history for this message
Darxus (darxus) wrote :
Revision history for this message
Darxus (darxus) wrote :
Revision history for this message
Darxus (darxus) wrote :

Verification that the problem is not in the .ttf file, this works (imagemagick):

convert -background lightblue -fill blue -pointsize 48 -font /usr/share/fonts/truetype/freefont/FreeSans.ttf label:test fonttest.png

Revision history for this message
Darxus (darxus) wrote :
Revision history for this message
Darxus (darxus) wrote :

One line fix from upstream, what's the likelihood of backporting?

==== //depot/povray/smp/source/backend/shape/truetype.cpp#34 (ktext) ====

27,29c27,29
< * $Revision: #33 $
< * $Change: 5091 $
< * $DateTime: 2010/08/06 11:17:18 $
---
> * $Revision: #34 $
> * $Change: 5097 $
> * $DateTime: 2010/08/08 16:31:04 $
1828c1828
< ffile->fp->seekg ((int)(search_char - firstCode), POV_SEEK_CUR) ;
---
> ffile->fp->seekg (((int)(search_char - firstCode))*2, POV_SEEK_CUR) ;

Revision history for this message
Phillip Susi (psusi) wrote :

This package has been removed from Ubuntu. Closing all related bugs.

Changed in povray (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.