Coder Social home page Coder Social logo

Replace default font about svg-captcha HOT 7 OPEN

produck avatar produck commented on June 2, 2024
Replace default font

from svg-captcha.

Comments (7)

steambap avatar steambap commented on June 2, 2024

One thing you can do is to use the charPreset option to define a set of character that will be used in random character generation.

Personally, I do not think this will be fixed by using another font. For most fonts I worked with, it is hard to distinguish between 0 and letter O. However, I'm also interest in your opinion. Do you have a font suggestion? What is the license of the font?

from svg-captcha.

AlexanderTserkovniy avatar AlexanderTserkovniy commented on June 2, 2024

Hmm, thanks for the suggestion. It could a solution for this issue ticket as well.

Yes agree, basically that font (Slabo27px-Regular.ttf), which I have loaded instead of Comismsh also contains 0 and O problem. But I would say it is something, which could be understood eventually. But agree that it is still a problem.

As suggestions for fonts here are:

Ideal, just type o0, O0, Il in the corresponding input
https://fonts.google.com/specimen/Roboto+Slab
Apache License, Version 2.0

Ideal
https://fonts.google.com/specimen/Droid+Serif
Apache License, Version 2.0

Distinguishable
https://fonts.google.com/specimen/Lora
Open Font License

Less ideal, has problem with o0
https://fonts.google.com/specimen/Playfair+Display
Open Font License

from svg-captcha.

steambap avatar steambap commented on June 2, 2024

Correct me if I'm wrong, Apache license v2 requires this software to be licensed under Apache license also. So I cannot take Roboto and Droid.

Lora looks good to me. I'll consider use it to version 2.x.

from svg-captcha.

AlexanderTserkovniy avatar AlexanderTserkovniy commented on June 2, 2024

I am not sure, but I have not noticed that point in the licence agreement.

Thanks for the consideration.

from svg-captcha.

steambap avatar steambap commented on June 2, 2024

I think the paragraph after section 4.d state that:

You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.

from svg-captcha.

AlexanderTserkovniy avatar AlexanderTserkovniy commented on June 2, 2024

Not sure if it aligns with the statement, which you wrote:

Correct me if I'm wrong, Apache license v2 requires this software to be licensed under Apache license also.

I believe here is written quite the opposite thing, meaning that you "may" (may/may not, just as you wish) add your changes in any part of license agreement and add it to the license text, which will go alongside with the font.

from svg-captcha.

steambap avatar steambap commented on June 2, 2024

You are right. I guess I just need put more thought into font switch.

from svg-captcha.

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.