We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22592
    • 11 Posts
    Heya,

    triggered by the graphical text module, I went to work to make a graphical text snippet.

    Basically you can use any .ttf to create a graphical rendition of your text.
    It is ’load-reduced’ and you can use it from within other snippets as well.
    The usage is explained within the comments.

    Just copy/paste the attached snippet:
      ---
      "Change the rules, challenge the future!"
      • 32241
      • 1,495 Posts
      Cool, somebody wanna test this out?
      Please provide some ffedback. I’ll add this to our repository, if it’s been tested. wink

      Good job paladin! Nice snippet idea...
        Wendy Novianto
        [font=Verdana]PT DJAMOER Technology Media
        [font=Verdana]Xituz Media
        • 33337
        • 3,975 Posts
        *ahem*

        Thanks for sharing nice snippet smiley

        Can you put it in txt file and attach it with 1st post, its way too long tongue

        best regards,

        zi
          Zaigham R - MODX Professional | Skype | Email | Twitter

          Digging the interwebs for #MODX gems and bringing it to you. modx.link
          • 22592
          • 11 Posts
          Just a sec. Did not realize that grin Done!
            ---
            "Change the rules, challenge the future!"
            • 33337
            • 3,975 Posts
            Thank you very much Paladin ! smiley

            regards,

            zi
              Zaigham R - MODX Professional | Skype | Email | Twitter

              Digging the interwebs for #MODX gems and bringing it to you. modx.link
              • 7455
              • 2,204 Posts
              does it create translucent png’s
                follow me on twitter: @dimmy01
                • 6726
                • 7,075 Posts
                Yeah thanks great idea, I’ll try this out and report smiley

                Nice to be able to use this within other snippets grin
                  .: COO - Commerce Guys - Community Driven Innovation :.


                  MODx est l'outil id
                  • 21595
                  • 159 Posts
                  par curiosité, une démonstration par l’auteur de la classe php
                  for fun, a demonstration by php class author
                  http://gaclarke.com/atextimage/demoform.php
                    • 22592
                    • 11 Posts
                    Yup, my small work is in the bottom of the snippet, so if you want you can extend it to do .png, .jpg and all the tricks the class author made.

                    Greets
                      ---
                      "Change the rules, challenge the future!"
                      • 33114
                      • 518 Posts
                      Couldn’t get this to work...

                      First try - the parser gave me an error message like
                      somethingttfbox function expected parameter 1 to be double, but sting was given
                      - I removed fontsize from the parameters

                      Second try - parser gave this
                      Couldn't open font

                      I looked throught the code of this snippet and didn’t find any absolute filepaths (which as I know are required for this php-ttf functions to locate the tff-file, smth. like "/home/prsound/public_html/assets/files/fonts/font.ttf""). I wonder how the snippet should work in this part... yeah, I’ve put the ttf file into assets/files/fonts/ - didn’t help. So I currenly use Etomite snippet (MakeImage) for this, hope to use yours though.
                        http://modx.ru - российская поддержка MODx
                        http://newscup.ru - экспериментальный проект
                        http://yentsun.com - персональный сайт