Comments (7)
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.
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.
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.
I am not sure, but I have not noticed that point in the licence agreement.
Thanks for the consideration.
from svg-captcha.
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.
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.
You are right. I guess I just need put more thought into font switch.
from svg-captcha.
Related Issues (20)
- When will version 3 be released? HOT 2
- Help with Instructions HOT 1
- Math Expression result are not between min and max config options HOT 1
- 如何自定义text? HOT 1
- 什么时候支持一下躁点? HOT 1
- could this project support compiling in angular?
- README Implementation is vulnerable to "replay"-style attack
- How to use with nextjs? HOT 5
- index.d.ts doesn't expose function const createCaptcha = function (text, options) ...
- how to implement this in typescript?? it causes some error
- High contrast text color to background color?
- This program has been cracked, please fix it HOT 4
- Svg file HOT 1
- Single path to improve security HOT 1
- What's going on with the versions? Nothing works on v3? HOT 4
- suggestion, the font path should config,if you use ../fonts/balaa.ttf, we can't pack all js to one file HOT 5
- node index.js find the error:"ENOENT: no such file or directory, open 'E:\umore\dailywork\BackSystem\fonts\Comismsh.ttf'" HOT 10
- to be real per the captcha ideal and goal HOT 6
- 建议增加一个选项来控制当验证码是随机字符串的时候 是否区分大小写 HOT 1
- why it is not work in nextjs@13? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svg-captcha.