# Slight Footer Update

**URL:** <https://forum.kirupa.com/t/slight-footer-update/163376>\
**Category:** random\
**Created:** [September 21, 2005, 11:29pm UTC](https://forum.kirupa.com/t/slight-footer-update/163376 "2005-09-21T23:29:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [September 21, 2005, 11:29pm UTC](https://forum.kirupa.com/t/slight-footer-update/163376/1 "2005-09-21T23:29:56Z")

</div>

Hey, I made a slight update to my footer. Now all the font sizes are dynamically created to be as large as possible (fill the entire area), and are vertically centered.

I was real proud, so I wanted to show off my php:

```php
// Loop through font sizes and center
	for ( $fontsize = 28; $fontsize > 5; $fontsize-- ) {
		$size = imagettfbbox ( $fontsize, 0, $font, $string );
		
		if ( $size[2] < 270 ) {
			imagettftext($im, $fontsize, 0, 15, 30-$size[5]/2, $text_color, $font, $string); break;
		}
	}

```
