Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#25397] VectorFont.filepath should support relative paths

Date:
2010-12-28 18:49
Priority:
3
State:
Closed
Submitted by:
Tamas Kemenczy (tamask)
Assigned to:
Ton Roosendaal (ton)
Category:
Interface
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
VectorFont.filepath should support relative paths
Detailed description
When loading a blend file from one computer to another, there are
situations where the fonts in a scene don't get loaded properly. This
is because the location of the vector fonts' filepaths might not match
on different systems. Its not a big deal to manually update this by
reselecting the font when working on a scene, but it can get
troublesome when using netrender or some other distributed rendering
system where the filepaths might differ (i.e. /Users/username/... and
/home/username between Mac and Linux)

Steps to recreate:

* Create a blend file with a text object in it and save it to a
location, for example along side a truetype font

* Under the object data panel, in the font section, browse and select
the truetype font that resides next to the newly created blend file

* In the outliner, select datablocks and drill down to the font object
(under Vector Fonts), the filepath attribute contains an absolute
path on the disk

I tried to edit and make the filepath relative using the Python API,
but the property was read-only. Maybe a 'Use relative paths' option
would be helpful when browsing font files?

Tested on:

* blender-2.55.0 r32738 on a MacBookAir3,1, Intel Core 2 Duo, NVIDIA GeForce 320M, Mac OS X 10.6.5
* blender-2.55.1 r33889 on a Thinkpad Edge, Intel Core 2 Duo, Intel GMA 4500MHD, Ubuntu Linux 10.10

Followup

Message
  • Date: 2010-12-29 12:32
  • Sender: Ton Roosendaal
  • Easy fix, goes to svn now.

    On loading ttf files, the file browser will show the relative path option now, set to the user-preference default.
    Unfortunately the UI currently doesn't show this path, nor does the outliner 'data view' allow to edit this. That's all on todo for later.
 

Attached Files:

No Files Currently Attached

Changes:

Field Old Value Date By
CategoryNone2010-12-29 12:32ton
StatusInvestigate2010-12-29 12:32ton
status_idOpen2010-12-29 12:32ton
close_dateNone2010-12-29 12:32ton
assigned_tonone2010-12-29 11:56ton
StatusNew2010-12-29 11:56ton