=== AnyFont === Contributors: choon Donate link: http://2amlife.com Tags: images, styles, fonts, admin, theme, enhancement, truetype, opentype, typography, ttf, font, plugin Requires at least: 2.5 Tested up to: 2.9 Stable tag: 0.8.6 AnyFont allows you to use any truetype or opentype font to replace plain text anywhere you want in your theme design. NEW IN 0.8: GD Shadow Effects! == Description == AnyFont allows you to use any truetype or opentype font for post titles, menu items or anywhere else you want to use a custom font in your theme design. Supports both PHP4 & GD or PHP5 & Imagick or GD. Version 0.8 introduces the option to add shadow effects in your style for the GD module, and for Imagick, the shadow effects have been enhanced with a new option to soften and spread out the shadow. A lot of work has also gone into the style manager interface with the most notable changes being, font previews in the font select dropdown, and the ability to customise the font size to any size you like! **Features:** * Font Manager to easily upload new fonts to WordPress * Style Management which allows an unlimited number of different styles to be created. * Font shadow options within the style manager. * Image Cache for generated images plus browser caching is enabled for images to reduce page load times. * Cache Management. * Easy text replacement options for post titles, page titles, widget titles, blog name and blog description. * Image replacements are SEO compatible. == Changelog == = 0.8.6 = * Bugfix: Font select dropdown not selecting font when creating a new style. = 0.8.5 = * Bugfix: Fixed reference to "self" in php4 class. (Thanks Jose). = 0.8.4 = * Bugfix: Image shadow sometimes got cut off when shadow spread was set higher than 2. (Imagick Only). * Bugfix: Unable to read multiple styles(Bold, Oblique, etc) when a font family had multiple styles uploaded. (reported by [@icithis](http://is.gd/5aVOC). :) * Enhancement: Improved Font Manager page, now shows font styles available and the fonts copyright notice, if any. = 0.8.3 = * Bugfix: Found a solution to the issue where text was getting cut off and so far its been confirmed as working on 2 servers which previously gave different results. * Bugfix: Fixed an error in the php4 admin class where php5 specific naming conventions were being used. = 0.8.2 = * Bugfix: Font list is correctly sorted into alphabetical order. * Bugfix: Displays the correct font name instead of simply the filename. * Bugfix: Minor CSS and other visual improvements. * Enhancement: The AnyFont rewrite rules in .htaccess are now only required if your blog does NOT have permalinks enabled. * Feature: New automatic process to determine the rewrite requirements. = 0.8.1 = * Bugfix: Imagick issue where images would not display after 0.8.0 upgrade. * Feature: Option to set the shadow distance. * Feature: Option to soften the shadow. (GD module only) = 0.8.0 = * Bugfix: Text getting cut off in generated images. * Bugfix: Browser not caching images on some WordPress installations. * Feature: Shadows are now available for the GD image module in the style manager. * Enhancement: Font previews are displayed in the select box dropdown when selecting a font in the style manager. * Enhancement: Font sizes are no longer limited to the selection in the dropdown, the size can be now overridden by just typing a custom size. * Enhancement: Shadows have been enhanced when using Imagick with a new option called shadow spread which softens the shadow. = 0.7.4 = * Bugfix: Internet Explorer font uploads. * Bugfix: Missing colour selector on some shadow-colour input boxes. * Bugfix: Improved compatibility with custom WordPress installations. * Enhancement: AnyFont will now automatically detect and repair broken configurations and if the problem cant be fixed automatically, a message will be displayed giving a possible solution. = 0.7.3 = * Bugfix: Widget Title replacements will retain the original $before_title and $after_title variables, which really improves compatibility with highly customised themes. (thanks Gavin!) * Bugfix: Text should now be left aligned if the style has a character limit = 0.7.2 = * Bugfix: Correctly escaped some unescaped characters in a regular expression in the template class (Thanks Joe!) * Bugfix: Checkboxes for newly created styles should function correctly without needing to refresh the page * Bugfix: Fonts are listed correctly in the dropdown after saving a new style = 0.7.1 = * Feature: New options to replace plain text version for tag titles and category titles. * Enhancements: Style interface has been cleaned up by hiding any unused options. * Bugfix: width limit option displaying as off even when enabled. * Bugfix: correct font was not selected for created styles in style manager (php4 & gd version) * Bugfix: width limit options are now available for styles created before version 0.7.0 Full changelog is available [here](http://2amlife.com/projects/anyfont/changelog) == Screenshots == 1. Style Manager 2. Font Manager 3. General Settings 4. Standard WordPress theme after enabling AnyFont. == Frequently Asked Questions == = After enabling the post title replace option on the settings page, all my post titles start with a "> why?? = This is quite a common error in themes, but quick and easy to fix, open up your theme's index.php file, look for a line that looks similar to the following: ><h2 class="posttitle"><a href="<?php the\_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the\_title(); ?>"><?php the\_title(); ?></a></h2> The problem lies in the title attribute, it should read: >"Permanent Link to <?php the\_title\_*attribute*(); ?>" = My Hosting Provider says ImageMagick is already installed, but AnyFont doesn't see it? = If you want to use ImageMagick over GD you need to ensure that the Imagick PHP extension to ImageMagick is also installed. [Click here for more info on Imagick](http://www.php.net/manual/en/book.imagick.php) = Its just not working for me! HELP! = Dont worry!! I am here to help where possible! Just leave a message explaining the problem you having on my [blog](http://2amlife.com) or send me a [tweet](http://twitter.com/ch00n) and I will get back to you as soon as I can. == Usage == After you have uploaded some truetype fonts and created a new font style, you can include dynamic images in your theme with the following code snippet: >"<img src='/images/your-style-name/the text to be generated.png' alt='the text to be generated' />" **Example:** Replacing the text in the menu with an image: >"<a href="<?php bloginfo('home') ?>" rel="home">Home</a>" becomes >"<a href="<?php bloginfo('home') ?>" rel="home"><img src="/images/menu/Home.png" alt="Home" /></a>" == Installation == *Server Requirements:* PHP4 or PHP5 and either the ImageMagick(imagick module 2.1.1-rc1 and up) or GD image module installed. Upload the AnyFont plugin to your blog and activate it!