AnyFont

AnyFont allows you to automatically set any TrueType or OpenType font for your post titles, menu items, widget titles or anywhere else you want to use a custom font on your WordPress site.

Upgrade to AnyFont PRO Edition and receive dedicated support plus free installation and theme integration for your WordPress site.

Supports both PHP4 & GD or PHP5 & Imagick or GD.

New features and enhancements in 1.1: The max-width setting is now measured in pixels instead of characters so if you using this option make sure you update your styles after upgrading! Image padding has also been enhanced with seperate controls for top, bottom, left and right and finally a new style option was added which allows you to set the line-height in multi-line images was kindly sponsored by writershouses.com.

Features:

  • WPMU/WordPress 3 compatible with full support for multiple sites.
  • Font Manager to easily upload truetype or opentype fonts to WordPress.
  • Character Map to quickly check which characters are available for each font.
  • Style Management which allows an unlimited number of different styles to be created.
  • Apply font shadows easily using the Style Manager.
  • TinyMCE Button for quick and easy insertion of AnyFont styled text into your posts or pages.
  • Image Cache for generated images plus browser caching is enabled for images to reduce page load times.
  • Cache overview and management tool.
  • Easy text replacement options for menus, post titles, page titles, widget titles, blog name and blog description.
  • Image replacements are SEO compatible.
  • Help icon for every single option to guide you when setting things up for the first time.

Translations:

  1. anyfont screenshot 1

    Style Manager.

  2. anyfont screenshot 2

    Font Manager.

  3. anyfont screenshot 3

    General Settings.

  4. anyfont screenshot 4

    Notepad Theme showing the top menu and sidebar menu after enabling menu replacements in AnyFont.

  5. anyfont screenshot 5

    TinyMCE Integration.


Current version: 1.1.3
Last updated: 15th June, 2010
37366 downloads

View Changelog | WordPress plugin page | Download

Comments and suggestions are most welcome!

  • email
  • Digg
  • del.icio.us
  • LinkedIn
  • Facebook
  • Twitter
  • Google Bookmarks
  • muti
  • StumbleUpon
  • FriendFeed
  • Ping.fm
  • Mixx
  • Technorati
  • blogmarks
  • Posterous
  • Blogosphere News
  • NewsVine
  • Yahoo! Bookmarks

108 Responses to “AnyFont”

  1. gazzzaf

    I’ve looked at implementing your plugin but for some reason the images do not cache. I’ve tried disabling all other plugins, reverted to the default theme and changed the image module option but nothing has worked. I’ve confirmed this issue with several fonts. My hosting services has GD Module and (possibly, cannot remember) ImageMajick.

    The plugin looks the goods and I’m desperate to get it working. Any help would be greatly appreciated.

    • Have you checked if the font folder and fonts-cache folder have been created in wp-content and are writable? If so, pop me an email with as much debug info as possible and I will try look further for you.

      • intelligentist

        Hey Ryan,
        same over here at http://b.lx-m.de
        using the GD module, since the server does not have imagick

        the folders exist and have chmod 777, fonts being uploaded are presented at the anyfont page in the admin menu, but no generated graphics at all. the fonts-cache folder is empty.
        for testing purposes i deactivated all other plugins and gave the plugin directory a chmod 777, nothing changed.

        if you have any hints, or questions for debugging purposes, you may mail me back to [address removed]

        alex

  2. rpxcf8d5c2681255ebddf06ffec810b6455

    Hi I’ve been using the marvellous AnyFont happily for a little while. It really makes my site, thanks for all your hard work. But since the newest release it’s not functioned at all, and then twice crashed my whole site when I tried to uninstall it. I’ve tried a fresh install of the plugin, a fresh Wordpress install, upgrading to 2.8, changing .htaccess permissions to 777, but no joy. I’d welcome your ideas. Possibly .htaccess is the clue here: nothing about Anyfont is in there. I seem to remember there were once some lines in there beginning: # BEGIN AnyFont. Perhaps you could advise me on how to re-edit the file? I don’t have any trouble doing this manually, if I know what to put in there, and where. I’m currently using Wordpress 2.8 and my blog frontpage is set in my root folder, different from from the wordpress folder, if that helps. My website is ficklefingeroffate.co.uk.

  3. lgharani

    I have to say your plugin is great. It works perfectly with my k2 + latest wordpress. However I have one issue. I have a site in German and even though the font that I have installed has umlauts (eg ü, ä, ö), it does not display on the page. I guess these are not recognized in your plugin? Or am I doing something wrong? would appreciate any feedback. Thanks.

    • Not sure why it would be doing that, any character that exists in the font should be able to be rendered. Send me an email using my contact page and include a link to your site or a page where I can see the problem for myself and I’ll see if I can figure it out for you. I am extremely busy with work right now though, so if you don’t hear from me immediately, don’t worry, I will come back to you just as soon as I have a moment to spare.

      • lgharani

        Thanks Ryan for your prompt reply. I’ve sent you the details….no worries. Whenever you find the time…

  4. novaccc.immobili

    AnyFont is working great for me, but I’m kind of disappointed… it seems that browsers don’t cache images generated by anyfont. When I navigate through my site, there’s a sensible delay between the time the page starts loading, and when the anyfont image is shown. During that period I can see the textual replacement, which later changes to the anyfont image. Any hint/suggestion? Thanks!

  5. redb68

    Hi

    your plugin seem wonderfull ! BUT, i can’t make a style : i make it, i record it, it appears. When i go out of the window and comme back the style is desappeared

    My wordpress is a 2.8 version

    Do you have an idea ??

    • I’m having the same issue. I’ve been using it for a little while now and it worked great until I updated to 0.8.0 today. Now everything seems fine, except the fonts don’t actually show up. Everything just looks like the default arial or whatever. The fonts and font-cache folders are writable and cached files are showing up in them when I add fonts.

      • AnyFont was working perfectly for a while, and now it just doesn’t quite work. I say quite because I can upload fonts, make styles and it automatically produces cached files. I’ve downloaded the cached files to my pc and they look right, but the previews just show sanserif text and nothing actually changes on my blog.

        http://www.blog.sarahritchie.com

  6. sam.gaidin

    Hi, I’ve been following your updates for awhile now. However with this last update (0.8.1) the images now appear lower and are getting cut-off along the bottom. Using EI 8 and Firefox 3.

  7. wookietv

    hi – i really want to use anyfont but i keep running into the same problem… here’s a screenshot of the page (i disabled anyfont for now until i can figure out what’s wrong)
    http://muckalucka.com/Images/Clipboard01.jpg

    as you can see, each post title is only showing “> and then a number and a colon. the number and colon are part of the post title, so it’s making that, just not the rest of the title. here’s the html from the first one in the yellow area dated july 30:

    perhaps the problem is that i can’t seem to find this /images/Post+Titles/ folder on my host. and i don’t know where that “> is coming from either. what you can’t see in that screenshot too is that next to the 5: (for example) where there would be the rest of the title, it does reserve that space for the image and i can hover around it and click to open the link.

    is this something you think you can help me with?
    thanks

    • shawn_asi

      Have you ever received a solution to this issue? I have a similar issue. When I use AnyFont for “post titles” I get the title with the font I specified, however it is then followed by the “> characters on the next line. For “page titles” it works fine. Any ideas?

      • The “> thing happens when your page title is also a link [to itself].

        Rather than try to track down where this problem is built, I just modified my template to make page headings no longer be links.

  8. You did some great work w/ this plugin! The interface is very user-friendly, and I had a style applied in no time. I seem to have run into a minor problem though. With my particular font the tails of all y’s, g’s, j’s, etc… get cut off. Otherwise ACE!

  9. jonathan.pruett

    First off, I love the plugin – been using it for months on many projects – it really adds a beautiful finishing touch to a site.

    I’m working on a project being hosted on BlueHost.com and the images are being created with an unexpected (and unwelcome) barcode effect. It’s running PHP 5 and GD.

    Has anyone seen this behavior before? I’ve tried to install Imagick on the host and it’s throwing errors – hopefully they will get that fixed for me tomorrow and I’ll be able to try the other image libraries to see if that solved the issue for me.

    Thanks for your help,
    - Jon

    • jonathan.pruett

      After digging into the problem again with more sleep, I found that once again, AnyFont is working just fine. Turns out the custom WP theme I installed had some really weird CSS tags that were causing a small background image to be added to all tags. I have no idea why the theme author put that in there, but once I cleaned that up the AnyFont magic looked beautiful again!

      Thanks for a great plugin,
      - Jon

  10. Hi,

    I had a problem when using the max-width property. I wanted to use AnyFont to apply a style to my blog post titles, so needed the text to wrap.

    Unfortunately, when I set the max-width property, the image that was generated looked about the right height, but the first line of text started at the bottom of the image so not all of the text was displayed.

    Heres an example of how the image was generating:

    http://www.ribitsolutions.co.uk/files/RECENTLY%20RELEGATED%20GAGA%20BACK%20TO%20A%20LIST%20%20FABULOUSNESS.png

    I’m not sure if there was something about my setup that was causing this, but I fixed it by going into:

    /wp-content/plugins/anyfont/lib/php4/class.image.php

    and changing the line:

    imagettftext($this->img, $this->size, 0, $this->left, $this->top, $this->font_color, $this->font, $this->text);

    at about line 138 to:

    imagettftext($this->img, $this->size, 0, $this->left, $this->size * 1.50 , $this->font_color, $this->font, $this->text);

    so this sets the starting point for the baseline to the font size + 50%. This seems to work for me and my post titles now wrap and are displayed correclty.

    Like I said, not sure if this was something about my install that was causing this, as I’ve not seen any other reports of this problem, but thought it was worth sharing the fix.

    PS. Love the plugin!

  11. donia80

    Hi, first of all I’d like to thank you for this great plugin.

    I can’t figure out this big issue:
    after all the image titles are created and stored in cache when I browse through the pages of the site sometimes I won’t see the content of the page but instead of it it appears one of the images created by anyfont.
    I don’t know if I have been able to explain my problem, so here is a screedshot
    http://www.vocinelweb.it/hdonline/uploads/anyfontproblem.jpg
    It happens both with firefox and explorer.

    I had to disable the plugin until I can’t find how to fix the problem.
    My settings
    # Operating System : Linux
    # Server : Apache/2.2
    # Memory usage : 16.09 MByte
    # PHP Version : 5.2.11
    # GD Version : bundled (2.0.34 compatible)

  12. ka81_ua

    Hello!

    Just installed plugin.
    Tried to get started – but no luck.
    It’s uploading fonts (www.dafont.com/xfiles1.font), but i guess with some error cause i don’t see a preview.
    secondly, I can’t create any style – there’s no field except Name, and no blue button to save.

    Please, help!!
    If you need a access to my blog-admin – no problem, I’ll send you any info!

    Very need your help!

    icq 9_4_1_2_6_6_6_6
    e-mail^ forum (@) ka81 (dot) com

  13. ka81_ua

    Warning: opendir(/data/www/apache22/data/ka81/x-files/wp-content/font-cache) [function.opendir]: failed to open dir: No such file or directory in /data/www/apache22/data/ka81/x-files/wp-content/plugins/anyfont/anyfont.php on line 313

    Warning: readdir(): supplied argument is not a valid Directory resource in /data/www/apache22/data/ka81/x-files/wp-content/plugins/anyfont/anyfont.php on line 314

    Warning: rmdir(/data/www/apache22/data/ka81/x-files/wp-content/font-cache) [function.rmdir]: No such file or directory in /data/www/apache22/data/ka81/x-files/wp-content/plugins/anyfont/anyfont.php on line 319
    Cache Cleared

    ————
    such a problem.
    almost the same text when trying to add a font …

  14. ka81_ua

    author, please help!!!

    It’s uploading fonts (www.dafont.com/xfiles1.font), but with error cause i don’t see a preview.
    so, after creating a style when in settings i manage any title – it’s changing on my blog but without any text-image. just simple error-blank-image.

    so the problem is at the beggining – when I upload font.

    Please, need help.
    I’d be appreciate for any comments here or (forum@ka81,com) or (icq 94126666)

  15. ka81_ua

    new error text when trying to clear the cache in anyfont-settings:
    Warning: rmdir(/data/www/apache22/data/ka81/x-files/wp-content/font-cache) [function.rmdir]: Permission denied in /data/www/apache22/data/ka81/x-files/wp-content/plugins/anyfont/anyfont.php on line 319
    Cache Cleared

    just don’t get it :(

    • Sorry for the delay in my response here, haven’t had much free time lately to properly catch up on things here.

      It looks like you got a permissions problem, AnyFont needs to be able to write to the following folders; wp-content/font-cache & wp-content/fonts. Additionally to clear the cache, AnyFont needs to be able to write to the wp-content folder directly. To fix the problem you need to make sure the folders and files inside are owned by the same user that apache uses, and then make sure the permissions are set to 755. Alternatively if that doesnt work out, as a last resort you can try setting the permissions on the folders and files to 777.

      Hope you manage to sort it out. And if you got any more questions, please don’t hesitate to ask, I will try and get to them as soon as I can. :)

      • ka81_ua

        i set 777 to wp-content & wp-content/font-cache & wp-content/fonts
        but still no result.

        about the owner of folders on server – how to check it? unfortunately I don\t know how to do it :(

      • ka81_ua

        Ryan, as far as i found out – my hoster made all the needed changes you wrote (the owner of – wp-content & wp-content/font-cache & wp-content/fonts) is Apache.

        but still a problem with viewing font-previewes.
        I can provide you with all needed information (login, pass,…) – maybe you could find out what is wrong there?

      • Please email me the relevant login details using the form on the contact page and I will have a look as soon as I can.

      • ka81_ua

        i wrote you all the info to your contact through – http://2amlife.com/contact

        very hoping for your help, cause your plugin is just what i need!!! :)

      • ka81_ua

        my hoster wrote me little bit more info about owners:

        drwxrwxrwx 10 www www 512 Nov 3 15:08 wp-content
        drwxrwxrwx 3 www www 512 Aug 3 12:54 uploads
        drwxr-xr-x 59 www www 1536 Oct 31 10:14 themes
        drwxrwxrwx 65 www www 2048 Nov 3 15:10 plugins
        drwxr-xr-x 2 www www 512 Nov 1 13:34 languages
        -rw-r–r– 1 www www 30 Oct 31 10:07 index.php
        drwxrwxrwx 2 www www 512 Nov 1 04:02 images
        drwxrwxrwx 67 www www 1024 Oct 11 22:37 gallery
        drwxrwxrwx 2 www www 512 Nov 315:14 fonts
        drwxrwxrwx 2 www www 512 Nov 3 15:08 font-cache

        www – is the Apache

      • It looks like your host does not have the mod_rewrite module enabled for apache. This is unfortunately a requirement for AnyFont to work correctly. I have checked everything else though and its all perfect, so all you need to do now to get AnyFont working is to convince your host to enable mod_rewrite for apache.

      • ka81_ua

        mod_rewrite module is enabled.

        still no result :(

      • Ask your host to check the AllowOverride option in the apache config for your site. At a minimum it must be set to “FileInfo Other” for mod_rewrite to work correctly.

      • ka81_ua

        Ryan
        hoster added AllowOverride FileInfo and now it’s working!!!!
        in Manage fonts – it’s previewing!!
        But in Manage styles – it’s not previewing!!

        BUT! it’s anyway working.
        i changed blogname and posttitles and it;s good.
        look – http://x-files.net.ua/?p=1

        the only problem is now with post titles:
        1) there are some characters before title – “>
        2) title is starting little bit rightside then it should be..

        is this a problem of css??

        help please!!!

      • ka81_ua

        as i see, with beeing a little bit on right side it’s a problem of PNG
        for example – http://x-files.net.ua/images/x-files/Pilot.png – it’s generated for post-title.
        if we look into that png in photoshop or any other image editor-viewer we can see that borders of picture are not close to symbols!!

        question – how to make PNG-borders beeing fully close to symboles on it?

      • ka81_ua

        and about TAGs and CATEGORIES – they are not changing :(

      • ka81_ua

        Ryan, please, help with PNG …

  16. rayimaster

    Hi !!!, im trying to set up anyfont on my own server based on Debian 5 & Apache, but anyfont dont recognize any php image module ( and dont be able to select it from the list). i have already installed php5-imagick 2.1.1RC1-1 & php5-gd on my system:

    ii libapache2-mod-php5 5.2.6.dfsg.1-1+lenny3 server-side, HTML-embedded scripting language (Apache 2 module
    ii php5-cli 5.2.6.dfsg.1-1+lenny3 command-line interpreter for the php5 scripting language
    ii php5-common 5.2.6.dfsg.1-1+lenny3 Common files for packages built from the php5 source
    ii php5-dev 5.2.6.dfsg.1-1+lenny3 Files for PHP5 module development
    ii php5-gd 5.2.6.dfsg.1-1+lenny3 GD module for php5
    ii php5-imagick 2.1.1RC1-1 ImageMagick module for php5
    ii php5-mcrypt 5.2.6.dfsg.1-1+lenny3 MCrypt module for php5
    ii php5-mysql 5.2.6.dfsg.1-1+lenny3 MySQL module for php5

    However, i can upload fonts correctly, permissions OK, any idea?? Thanks !!!!

    • check that the gd/imagick php modules have been enabled in the php.ini, simple way to do this is to load up a phpinfo() page and check if they listed there, if not, add the modules to php.ini, and dont forget to restart apache when done.

      • rayimaster

        Hi !! thanks in advance, my phpinfo shows mod_rewrite enabled ( a2enmod rewrite), and gd support & imagick enabled too,in my php.ini dinamyc extensions i wrote extension=gd.so, restarted apache and still dont appears nothing in php module image list. ( but i can create styles without preview )
        PHP MoDuLe LiST Vs Me ( like a guitar hero war against xbox hehe ).

        I think its will be solved compiling apache with gd support, any suggestion ? thanks !!!

      • rayimaster

        oh yeah !!!! that was the clue, AllowOverride FileInfo, restarted apache and voilá !!!! now im gonna test anyfont, heheheh – SOLVED- =)

  17. Hey! I’m really stoked about your plugin. The caching feature is great. I’ve been using sIFR and the header load rather slowly.

    I don’t suppose you would be able to point to towards why my headers end up 1px tall? I have a screenshot here: http://web1.twitpic.com/img/43931787-2cff82e28910b6f34e34a72fc47a2b02.4b05cebf-scaled.jpg

    It’s weird, especially because it shows up that way in the preview in the settings area of the dashboard.

    The font is an OTF font, and the server has PHP5 and GD installed.

  18. Hi,

    I’m using a ProPhoto theme and having a few issues with your plug-in.

    I really like it, but it seems to be making certain things into images that I’d prefer it didn’t!

    If you look at the home-page, it looks great, exactly how I want it:

    http://www.mattsanderson.co.uk/

    Just the post titles are images – great.

    But, if you look at a specific post, then the footer becomes images too – not so great:

    http://www.mattsanderson.co.uk/wedding-photography/giles-jess-wedding-ringwood-hall-chesterfield/

    Any ideas?

    - Matt

  19. ka81_ua

    AnyFont 0.9.0 – Manage Styles error

    http://x-files.net.ua/img/anyfont090error.jpg

    no buttons or any other fields to edit and create styles.
    in any browser.

  20. ka81_ua

    AnyFont 0.9.0 – Manage Styles
    error

    http://x-files.net.ua/img/anyfont090error.jpg

    no buttons or any other fields to edit and create styles.
    in any browser.

    • The location of the fonts folder and the cache changed with version 0.9.0, Please make sure your wp-content & uploads folder can be written to by the server, and then deactivate and activate AnyFont. At the very least, you need to make sure that the following folders exist and can be written to by the server:

      wp-content/uploads/fonts/
      wp-content/cache/anyfont

  21. donia80

    Please, can someone help me with this issue?
    It happens in each site where I installed anyfont!

    I can’t figure out this big issue:
    after all the image titles are created and stored in cache when I browse through the pages of the site sometimes I won’t see the content of the page but instead of it it appears one of the images created by anyfont.
    I don’t know if I have been able to explain my problem, so here is a screedshot
    http://www.vocinelweb.it/hdonline/uploads/anyfontproblem.jpg
    It happens both with firefox and explorer and I have to refresh the page more than once to make the content appear again!!!

    I had to disable the plugin until I can’t find how to fix the problem.
    My settings
    # Operating System : Linux
    # Server : Apache/2.2
    # Memory usage : 16.09 MByte
    # PHP Version : 5.2.12
    # GD Version : bundled (2.0.34 compatible)

  22. paul

    Hey Ryan

    Thanks for a great plugin. I’m testing it on some new designs now, could be perfect.

    I just can’t figure out how to apply AnyFont to menu buttons in the header?
    I want to convert the output from wp_page_menu or wp_list_pages.

  23. Hi,
    I have updated to Version 0.9.1 and all of a sudden anyfont doesnt show any fonts – funny wordgame ;)

    the fonts are uploaded in the uploads/fonts directory – i can see the old cached images, but there are no new images. in the posts (when i use the included mce) – i can see links pointing to: /images/stylename/test%20test.png – but neither I nor apache can find them.
    My wild guess is: write problems and/or htaccess problems.
    If you need more information – lemme know, coz my wife is close on my back to get this back working… if you can imagine… happy new year!

    cheers
    d.

  24. vikingmonkey

    Hey, love the plugin but I’m it looks like the font getting cut off at the bottom is still a problem. I’m using version 0.9.1. Really digging this plugin so I hope there’s a solution. Thanks!

  25. LanceB

    Hey,
    I just wanted to say I love using your plug-in on my Wordpress. I had a questions though. I just downloaded the new version of the plug-in and since then I have not been able to re-activate the plug-in. It says it is causing a fatal error so it will not load. Is this something I can fix or get the older version back? Thanks for any advice to this that you may have.

  26. I have installed AnyFont and it is showing up in all of my menus, even on my Add New Post page. However, I can’t set any styles or upload fonts because when I go to AnyFont in my dashbard the page is blank! I see Settings, Style Manager, etc but get a blank page when I select them.

    I can’t find anyone with the same problem.

    I am running Thesis as my theme, and I have already tried different releases of AnyFont.

  27. lcdots

    Hi,

    first i would like to thank You for this, I think it is the most usable and comaptible text replacement plugin.
    On the other hand I’ve got a simple little problem, that I’ve inherited this one:

    img {
    background-color:#faf1e4;
    border:1px solid #7a010c;
    display:block;
    margin:4px 0px 4px 5px;
    padding:2px;
    position:relative;
    }

    from my template’s css. It gives fair background and red borders to all of my images. I’ve already defined a noborder class, but I don’t know which file to edit in Your code, to call it.
    I know this is an easy one, so can You please help?

    Thanks and keep up doing this, it’s really awesome!

    • In the latest version of AnyFont , all image replacements except for widgets include the style attribute with “border:0 none” set. I will ensure that widgets also include this in the next release. All image tags for replacements are generated in “anyfont.php” though if you still want to include your class.

      Enjoy!

  28. Hello! Thank you so VERY much for this plugin, it’s absolutely amazing, the sheer amount of work put in to every aspect of it, thank you so much!

    I have what I hope is an easy question – I’m customizing a premade theme, and am new to CSS and PHP, but muddling my way through steadfastly, I just needed to know what php tags that anyfont looks for when it’s replacing text? I want to format my pages to be AnyFont friendly :)

    Thanks!

    • Glad you enjoying the plugin as much as I enjoyed creating it! :)

      AnyFont does not look for any specific php tags when replacing text, it mostly just looks for standard theme structures, so if you stick to the standards laid out by the old default WordPress theme and the new Twenty Ten theme you should be fine.

  29. I have the same problem with Umlauts. Have you find out anything?

Trackbacks & Pingbacks:

Post a Comment