Giter Club home page Giter Club logo

Comments (6)

tejanium avatar tejanium commented on September 23, 2024 1

Yes, that's what we did

        def safe_font_family
          ERB::Util.url_encode(font_family)
        end

from cloudinary_gem.

tommyg-cld avatar tommyg-cld commented on September 23, 2024

@tejanium firstly apologies for the delay in getting back here, this got lost in our backlog.

Regarding the customer font, you can just URL encode the space before making the request and it will work e.g. https://res.cloudinary.com/cookpad/image/upload/l_text:Open%20Sans_60:Text%20with%20spaces/sample.jpg

let me know if resolves your issue?

from cloudinary_gem.

tejanium avatar tejanium commented on September 23, 2024

Thank you for getting back to me

Regarding the customer font, you can just URL encode the space before making the request and it will work e.g. res.cloudinary.com/cookpad/image/upload/l_text:Open%20Sans_60:Text%20with%20spaces/sample.jpg

Yes, this is what we ended up doing. But I think this should be part of the library.

from cloudinary_gem.

tommyg-cld avatar tommyg-cld commented on September 23, 2024

@tejanium no problem and fair point, let me raise it internally and hopefully we will have a fix soon.

from cloudinary_gem.

tommyg-cld avatar tommyg-cld commented on September 23, 2024

also as a workaround, for now, you could escape the space when it comes to fonts with spaces like font_family: "Open%20Sans"

from cloudinary_gem.

tommyg-cld avatar tommyg-cld commented on September 23, 2024

so this is in our list to fix but no ETA currently but will keep you posted.

from cloudinary_gem.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.