Preview from a font

Discussion in 'Programming' started by shuguesebookers, Feb 17, 2009.

  1. #1
    Bonjour,

    is there any way (librairy) of giving PHP a typo font (TTF, MAC FONT, etc...)
    And get a JPG preview of what this font looks like ?
    (following a exemple sentence "A zebra love 12 elephants.")

    sthing like that :

    <?php
    //abstract desire code :
    $font_preview = new FontPreviewer ();
    $font_preview.font = 'fonts/Helevtica_neue_bold.ttf';
    $font_preview.pattern = 'A zebra love 12 elephants.';
    $font_preview.destination = 'images/HelevBold_preview.jpg';
    $font_preview.createPreview();
    ?>
    PHP:
    Or any other way, Thanks, Sylvain.
     
    shuguesebookers, Feb 17, 2009 IP
  2. dazst

    dazst Active Member

    Messages:
    115
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    78
    #2
    Hi,

    Yes it is possible, using PHP's GD functions.
    I can create this for you, contact whitecollar18 @ gmail dott com
     
    dazst, Feb 22, 2009 IP