GithubHelp home page GithubHelp logo

Comments (5)

wesoft1001 avatar wesoft1001 commented on August 19, 2024

any solution of font size?

from captchaimageview.

sahuajay86 avatar sahuajay86 commented on August 19, 2024

Font size is too small for high res devices like xxxhdpi and tables
in function:
private static String drawRandomText
set the textSizeRange arry variable as follows
int[] textSizeRange = {100, 120, 140, 150};

from captchaimageview.

santacoderofficial avatar santacoderofficial commented on August 19, 2024

Hello, How can I increase text size?

from captchaimageview.

AsmaTidafi avatar AsmaTidafi commented on August 19, 2024

I used scaleX and scaleY to zoom the text, it worked fine.

<test.jinesh.captchaimageviewlib.CaptchaImageView
    android:id="@+id/image"
    android:layout_width="wrap_content"
    android:layout_height="@dimen/_30sdp"
    android:scaleX="2"
    android:scaleY="2"
/>

from captchaimageview.

devkumar2486 avatar devkumar2486 commented on August 19, 2024

Setting hard code value for scaleX and scaleY will not work for all resolutions if we set it to 2, then the image will be over sized for low res devices, a better solution is to add dimen files for each resolution and define dimen values like 1, 1.5, 2 etc for each density, and use that dimen value for scaleX and scaleY.

from captchaimageview.

Related Issues (6)

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.