Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7090651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:04:52+00:00 2026-05-28T08:04:52+00:00

I have prepared one custom view, in custom view I have displayed alphabets. It

  • 0

I have prepared one custom view, in custom view I have displayed alphabets. It is working fine, but in case of “g” it is displaying like this,

preview

I want to change like this “g”. How to change it? Please help me. I used the following code for painting,

Paint mPaint=new Paint();
mPaint.setDither(true);
mPaint.setColor(0xFFFFFFFF);
mPaint.setTextSize(350);
mPaint.setStyle(Paint.Style.STROKE);
mPaint.setStrokeJoin(Paint.Join.ROUND);
mPaint.setStrokeCap(Paint.Cap.ROUND);
mPaint.setStrokeWidth(10);


Typeface typeArial;
typeArial = Typeface.create("arial", Typeface.BOLD);
mPaint.setTypeface(typeArial);

In onDraw(),

 bmpCanvas.drawText("g",50, 230,mPaint);

Please help me…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T08:04:53+00:00Added an answer on May 28, 2026 at 8:04 am

    You can achieve it by setting programatically by down loading the text style and place in assets folder,for example to set custom font typeface as follows,try the same in you case for paint object.

     TextView txt = (TextView) findViewById(R.id.custom_font);
      Typeface font = Typeface.createFromAsset(getAssets(), "Helv Neue 67 Med Cond.ttf");
      txt.setTypeface(font);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have prepared one custom view using onDraw method, my view class is, public
i have prepared paint application,my application contains one custom view for paint.when we draw
Here's the issue. I have a prepared statement, like this: $select_something = $db->stmt_init(); $select_something->prepare
I have something that looks like this: my $report = new ReportGenerator; #custom object
My goal is to have one element on initial load, this element should have
I have a PHP script with one select query and several prepared update statements.
This one's puzzling me. I have a MySQL query, being run though PDO: $stmt
I have prepared one application.My application will be supports both landscape and portrait. When
I want to make two prepared statements, one right after the other in PHP
This is a bit of a tricky one. I have Document entities that are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.