[Typo3] TrueType Fonts in Menus

Wallace, David D.P.Wallace at massey.ac.nz
Tue May 10 06:44:19 CEST 2005


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.

-FreeType is installed and running via the Install interface/tests
-GDlib with FreeType is installed and compiled with PHP (version 2.0.15)
and all graphic formats enabled
-ImageMagick is installed and running, version 4.2.9 (have also tried
version 6.2.2)

Environment is;
-Typo3 version 3.7.0
-PHP version 4.3.4 as CGI
-Apache 2.0.48
-Windows XP Pro (tried on either SP1 or SP2 boxes without success)

Here is my setup for my menu, it is supposed to be a graphical
breadcrumb menu....

#Define Bread Crumbs Menu
## TMENU_LAYERS
includeLibs.tmenu_layers = media/scripts/tmenu_layers.php

temp.BREADCRUMBS = HMENU
temp.BREADCRUMBS.special = rootline
temp.BREADCRUMBS.special.range = 0 | -1
#temp.BREADCRUMBS.special.value = 55
temp.BREADCRUMBS.1 = GMENU
temp.BREADCRUMBS.1.disableAltText = 1
#Change the folowing line to make buttons length of largest item (=1)
temp.BREADCRUMBS.1.useLargestItemX = 0
temp.BREADCRUMBS.1.NO {
  #wrap for 2nd level menu items
  #Change the height to be the button image height +1, +1 leaves a space
  #wrap = |<img src="clear.gif" width="1" height="20" align="top"
alt="spacer image" />
  linkWrap = |
  4 = IMAGE
  4.file = media/buttons/menuborder_middle.gif
  4.tile = 10
  5 = IMAGE
  5.file = media/buttons/menuborder_left.gif
  6 = IMAGE
  6.file = media/buttons/menuborder_right.gif
  6.align = r
  
  #Last number is the height of the cell
  #If you change the height of the button images, last number to match
  XY = [10.w]+10, 20
  10 = TEXT
  10.text.field = nav_title // title
  10.fontSize = 13
  10.fontStyle = bold
  10.fontColor = #000000
  10.fontFile = typo3/t3lib/fonts/verdana.ttf
  10.niceText = 0
  # Text position of 2nd menu layout (x=distance indent, y=distance from
top of cell)
  10.offset = 5,15
}

temp.BREADCRUMBS.1.RO < temp.BREADCRUMBS.1.NO
temp.BREADCRUMBS.1.RO=1
temp.BREADCRUMBS.1.RO {
  10.fontColor = #FFFFFF
  4 = IMAGE
  4.file = media/buttons/menuborder_middleR.gif
  4.tile = 10
  5 = IMAGE
  5.file = media/buttons/menuborder_leftR.gif
  6 = IMAGE
  6.file = media/buttons/menuborder_rightR.gif
  6.align = r
  backColor = #000000
}

The above code works 100%, apart from the fact Typo3 completely ignores
any definitions I supply to use a different TrueType font. It obtains
its own TrueType font and uses that when creating the rollover images.

I must be missing something as searching the web and Typo3 support
forums do not seem to come up with this issue.

Any suggestions will be greatly appreciated!

Thanks 
David Wallace 
Massey University 
New Zealand




More information about the TYPO3-english mailing list