Is there a way to use path directives or relative paths in .ttfimport files? For example,
%windir%\Fonts\Arial.ttf
or even a relative path under the project like
Content\Arial.ttf
Not everyone on the team keeps their Windows directory at C:\Windows, and I'd like to be able to use one set of source files for the whole team. Any ideas?
Thanks in advance.
oops, looks like the code
oops, looks like the code tag wasn't working... here's what it should have been:
<Path>%windir%\Fonts\Arial.ttf</Path> ... or
<Path>Content\Arial.ttf</Path>
Already working!
(Sorry, the code and blockcode tags currently only work when you've disabled TinyMCE (the wysisyg editor), because it replaces <code> with <code>...)
You can already specify relative paths in the .ttfimport file (actually, that's the way it I'm using it myself!), they are always relative to the project directory. So, if you've got a file Content\Fonts\Arial.ttfimport set up and want to store Arial.ttf in the same directory for easier distribution of your project among team members, just write
in your .ttfimport file and it will work!
Environment variables are not resolved yet, but it sounds like a good thing to implement for the next release ;)
Aha
It turns out I'm an idiot and I was just getting the relative path wrong. Thanks for the help!
On another note, is there a full API document somewhere that I've just missed? Thanks again.
Post new comment