Maniphest T26010

Text objects don't use packed fonts properly. Relative paths fail.
Closed, Archived

Assigned To
Sergey Sharybin (sergey)
Authored By
Alberto Torres Ruiz (dithi)
Feb 10 2011, 10:42 AM
Tags
  • BF Blender
Subscribers
Alberto Torres Ruiz (dithi)
Sergey Sharybin (sergey)

Description

Duplicates: T25538

The new feature (bugfix) of rendering text in BGE with Blender's font rendering module fails most of the time when trying to use custom TTFs. After some research I found that:

- BGE needs the font to be packed but it uses the original file instead of packed data.
- The path is relative (beginning with //) unless the TTF is opened with the relative option unchecked. Selecting convert all paths to absolute does nothing when it's packed.
- It tries to open the path beggining with //, which fails.
- The only sure way I did make it work is editing the .blend with a hex editor and replacing "//" with "./" in the font path. I don't know if it works on windows.

In brief: It should make use of packed data, otherwise expand the path properly.

Using 64-bit linux, latest SVN.

Event Timeline

Alberto Torres Ruiz (dithi) edited a custom field.Feb 10 2011, 10:42 AM
Sergey Sharybin (sergey) added a comment.Feb 11 2011, 4:41 PM

What is exact way pf reproducing this bug? Tried several times, but was no luck to have glithces.

Alberto Torres Ruiz (dithi) added a comment.Feb 11 2011, 6:30 PM

Add a text, save the .blend somewhere, open a font for the text, press P to start BGE.

Alberto Torres Ruiz (dithi) added a comment.Feb 11 2011, 6:33 PM

Oops, if I save the .blend to /tmp, it works, because the relative path is //../home/dithi/...... which is interpreted as a absolute path, I guess.
To reproduce, open a font which is in the same directory.

Sergey Sharybin (sergey) added a comment.Feb 11 2011, 8:33 PM

Been talking with Diego Borghettim who is familiar with all this blenfonts. He have already got the same report assigned to him (it's from BGE tracker) -- http://projects.blender.org/tracker/index.php?func=detail&aid=25538&group_id=9&atid=306

Packed fonts are also in Diego's TODO list.

Closing this one.

Sergey Sharybin (sergey) changed the task status from Unknown Status to Archived.Feb 11 2011, 8:33 PM
Sergey Sharybin (sergey) added a comment.Feb 11 2011, 9:09 PM

Oops, Typo in name. He's Diego Borghetti. looks like i wanted to type a comma.