Get font width with imagefontwidth() in PHP

Description

The following code shows how to get font width with imagefontwidth().

Example


<?php
echo 'Font width: ' . imagefontwidth(4);
?>

The code above generates the following result.

Get font width with imagefontwidth() in PHP




















Home »
  PHP Tutorial »
    Image »




Color
Create
Font
Operation
Shape
Text