[Typo3] TrueType Fonts in Menus

Jason A. Lefkowitz jlefkowitz at oceana.org
Tue May 10 13:23:40 CEST 2005


Hey --

Wallace, David wrote:
> I have been trying for several days to get TrueType fonts to work in my
> menus. I currently have dynamically created navigation created by Typo3
> as rollover images.
> 
> The issue is that I cannot seem to change the TrueType font that Typo3
> is using in my menus. It seems to keep using a generic TrueType font
> regardless of what I supply in my template setup.
> 

[snip]

I was having the exact same difficulty, but eventually got it to work.
One thing I tried was this -- instead of putting my custom font files in
the t3lib/fonts directory, I created a new "fonts" directory under
fileadmin, and put them there instead (on the theory that fileadmin was
user-space, and therefore maybe more amenable to uploading my own stuff
than t3lib was).  Then I referenced that directory when I made the
fontFile call.

So instead of

10.fontFile = typo3/t3lib/fonts/<your font file>

It would be

10.fontFile = fileadmin/fonts/<your font file>

Seemed to work for me.  Your mileage may vary, of course (I'm still
learning Typo3 myself).

Another thing that jumps out at me is that you shouldn't need to specify
"typo3" in the fontFile call, if you're pointing to t3lib... so you
might try this and see if it works:

10.fontFile = t3lib/fonts/<your font file>

Hope this helps!

-- Jason Lefkowitz



More information about the TYPO3-english mailing list