Zum Inhalt springen

Probleme mit Schrift- Rendering

Erstellt am 15. Dezember 2005 · 4 Antworten · letzte Antwort am 18. Dezember 2005

Tags: Frage

dj_jeff ·

Typo3- Version: 3.8.1
OS: Win XP SP2
Apache: 2.0.54
PHP: 4.3.10
MySQL: 3.23.49
ImageMagick: 6.2.5
Freetype: 2.1.10

Ich weiß nicht genau, ob es nun ein Problem im TypoScript ist oder eine Einstellungssache in Typo3 o.ä.

Der GIFBUILDER- Befehl in Typo3 funktioniert bei mir nicht richtig. Irgendwas noch mit dem ImageMagick, GD ? Im Typo3- Filebrowser werden Thumbnails angezeigt, also nehme ich an, dass ImageMagick in gewisser Weise funktioniert.

Zuerst hatte ich immer einen leeren Inhalt für den Platzhalter "TITLE" erhalten. Dann hab ich mal im Installationstool noch ein paar Einstellungen vorgenommen und zumindest ein Rechteck wurde gezeichnet. Im Installer selbst gibt es einige Image- Tests, u.a. war in einem auch Schrift reingerendert. Bloß im Typo3 selbst funktioniert's halt nicht.

Hier mal der Quelltext:

seite = PAGEseite {
  typeNum = 0
  bodyTag =  <body style="background-image:url(fileadmin/images/back_content.gif)">
  stylesheet = fileadmin/style.css
  meta.AUTHOR = Test
  meta.DESCRIPTION = Hier steht eine Beschreibung
  10 = TEMPLATE
  10.template = FILE
  10.template.file = fileadmin/basic.html
  10.workOnSubpart = DOCUMENT
  10.marks {
    TITLE = IMAGE
    TITLE.file = GIFBUILDER
    TITLE.file {
      XY = 559, 86
      backColor = #82BC8B
      10 = TEXT
      10.text = Herzlich Willkommen
      10.fontSize = 60
      10.fontFile = fileadmin/fonts/times.ttf
      10.fontColor = #96CC9F
      10.niceText = 1
      10.offset = 10, 75
    }
  }
}

Zur Sicherheit auch mal den Inhalt der LocalSettings.php:

<?php
$TYPO3_CONF_VARS['SYS']['sitename'] = 'Blank DUMMY';

	// Default password is "joh316" :
$TYPO3_CONF_VARS['BE']['installToolPassword'] = 'bacb98acf97e0b6112b1d1b650b84971';

$TYPO3_CONF_VARS['EXT']['extList'] = ...
$typo_db_extTableDef_script = 'extTables.php';

## INSTALL SCRIPT EDIT POINT TOKEN - all lines after this points may be changed by the install script!

$typo_db_username = 'dbuser';	//  Modified or inserted by TYPO3 Install Tool.
$typo_db_password = 'dbpass';	//  Modified or inserted by TYPO3 Install Tool.
$typo_db_host = 'localhost';	//  Modified or inserted by TYPO3 Install Tool.
$typo_db = 'typo3';	//  Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS["SYS"]["doNotCheckReferer"] = '1';	//  Modified or inserted by TYPO3 Install Tool.
// Updated by TYPO3 Install Tool 09-12-2005 00:39:30
$TYPO3_CONF_VARS['EXT']['extList'] = ...
// Modified or inserted by TYPO3 Extension Manager. 
// Updated by TYPO3 Extension Manager 09-12-2005 00:40:26
$TYPO3_CONF_VARS["SYS"]["encryptionKey"] = '8cb22bdd0b7ba1ab13d742e22eed8da22122c67f00c989946e0e1f071d927692e081041eff3c87ab85db65b656b8cae8';	//  Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS["GFX"]["gdlib"] = '1';       // Modified or inserted by TYPO3 Install Tool. 
$TYPO3_CONF_VARS["GFX"]["im"] = '1';       // Modified or inserted by TYPO3 Install Tool. 
$TYPO3_CONF_VARS["GFX"]["im_combine_filename"] = '';	//  Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS["GFX"]["im_path"] = 'c:/programme/ImageMagick/';       // Modified or inserted by TYPO3 Install Tool. 
$TYPO3_CONF_VARS["GFX"]["im_path_lzw"] = 'c:/programme/ImageMagick/';       // Modified or inserted by TYPO3 Install Tool. 
$TYPO3_CONF_VARS["GFX"]["thumbnails"] = '1';       // Modified or inserted by TYPO3 Install Tool. 
$TYPO3_CONF_VARS["GFX"]["image_processing"] = '1';       // Modified or inserted by TYPO3 Install Tool. 
// Updated by TYPO3 Install Tool 09-12-2005 15:32:34
$TYPO3_CONF_VARS['EXT']['extConf']['ts_language_de'] = 'a:1:{s:2:"en";s:1:"0";}';	//  Modified or inserted by TYPO3 Extension Manager.
// Updated by TYPO3 Extension Manager 09-12-2005 15:35:32
$TYPO3_CONF_VARS["GFX"]["gdlib_2"] = '1';	//  Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS["GFX"]["im_mask_temp_ext_gif"] = '1';	//  Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS["GFX"]["TTFdpi"] = '96';	//  Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS["GFX"]["im_version_5"] = '1';	//  Modified or inserted by TYPO3 Install Tool.
// Updated by TYPO3 Install Tool 10-12-2005 00:03:53
?>
dj_jeff ·

OK, das funktioniert erst einmal. Danke ! 🙂
Die Option niceText ist ja, laut Doku, für das Kantenglätten der Schriftart zuständig. Irgendeine Ahnung, was der Grund sein könnte, warum diese Option nicht funktioniert ?

codo ·

also bei mir wars die eistellung unter install, 1: basic configuration, free type quick test.
(If the text is exceeding the image borders you are using Freetype 2 and need to set TYPO3_CONF_VARS[GFX][TTFdpi]=96.
If there is no image at all Freetype is most likely NOT available and you can just as well disable GDlib for TYPO3...)

dj_jeff ·

Also bei mir zeigt der den Text korrekt an in der Testbox. Den entsprechenden Parameter habe ich auch schon auf 96 dpi wegen der entsprechenden Version gesetzt gehabt.