We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36805
    • 354 Posts
    In this old thread the development of a DTR plugin was mentioned by Ryan. Has this ever been released? I do not want to reinvent the wheel here.

    I tried texttoimage but it has difficulties encoding/decoding spaces and the like.
      • 4971
      • 964 Posts
      Have you tried Cufon or Google Fonts?
        Website: www.mercologia.com
        MODX Revo Tutorials:  www.modxperience.com

        MODX Professional Partner
        • 12028
        • 152 Posts
        Henrik Nielsen Reply #3, 16 years ago
        A alternative could be siFr from http://wiki.novemberborn.net/sifr3/ which are using a small flash file with the embedded font, and you can style it with CSS.
          - A small step for mankind, so why not take two...

          Working with web production, graphic design/workflow, photo and education - but are trying to get a life in between!
          • 36805
          • 354 Posts
          google fonts do not enable me to use my own custom font on my own server. In my projects this is necessary.

          I do not prefer SIFR. The PCDTR is pretty straightforward in its use. However i do not know how to get it running with MODx.

          http://code.google.com/p/pcdtr/

          In the readme file this is what it says about running it in a CMS:
          * If you are using this script in a CMS that doesn't allow you to use output 
            buffering functions, simply comment the line with `ob_start('PCDTR_init');` in 
            the class.php file and, in your code, execute PCDTR_init($buffer); 
            with your generated content string.


          How do i get the generated content string from MODx?
            • 5340
            • 1,624 Posts
            Did you try http://www.fontsquirrel.com/

            If you have a font they have a tool that makes it "web safe" : http://www.fontsquirrel.com/fontface/generator
              • 36805
              • 354 Posts
              I have used the fontsquirrel generator and i got working webfonts a while ago. This however turns out to be an insufficient solution for us. Browser security settings can deactivate font downloading ... and they DO sad

              The Internet Explorer appears to deactivate this without asking the user. This seems to occur during automatic security updates.

              --

              I really want to use PCDTR because I feel it is a superior solution. Someone on the forum got it working as a plugin. Now that I found that post I think I’ll manage. Here I can see how to get the content string in a plugin and pass it to PCDTR.

              Thanks for the ideas. I’ll report back whether I was successful.
                • 5340
                • 1,624 Posts
                Interesting, never heard of IE disabling font downloading. They support web fonts from IE5(I think).
                Why would they disable them? Just curios. I used FLIR before but not happy.

                I have to look into PCDTR. Hopefully they support all the css styles and they br text properly.
                  • 36805
                  • 354 Posts
                  Unfortunately I haven’t accomplished my goal so far. If I run the example it works. Integrated in MODx it doesn’t.

                  First it won’t replace my text. Then if I run the example script first it will. I noticed it then always uses the same text from the example and not the MODx content!

                  Why? It appears to store text in the $_SESSION for later replacement in the dynamic css. However, when called from MODx, the DTR script fails to set the $_SESSION strings accordingly.

                  Hope someone can shed some light on how to solve this issue..



                  @cipa: check the included readme for supported styles. Not everything is possible but its quite flexible. You can even use $letterWrap to have it break the line after a number of chars.
                    • 36805
                    • 354 Posts
                    I finally got to the bottom of this!

                    If anyone is interested, read my post on how to achieve pcdtr integration with MODx.