Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write curved text? [closed]

Tags:

I want to write curved text like this:

curved text

How can I do this?

like image 508
Monali Avatar asked Dec 01 '11 06:12

Monali


People also ask

How do you curve text up and down?

With your text highlighted, click on the Format tab in the toolbar. Click the Text Effects button. Place your cursor over Transform. In the fourth row of the Warp section, choose between the Curve: Up or the Curve: Down option.

How do I make text curve without changing in Word?

One way you can curve text in Word is by creating a text box and applying text effects. To do this, click on "Insert" within the ribbon at the top of the screen and then select "Text." Once in the "Text" section, you can select "Text Box" and delete any existing text.


1 Answers

Lol, this is fun, I've just tried to make a text curve, you can try it:

package pete.android.study;  import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Path;  import android.graphics.RectF; import android.view.View;  public class GraphicsView extends View {     private static final String MY_TEXT = "xjaphx: Draw Text on Curve";     private Path mArc;      private Paint mPaintText;      public GraphicsView(Context context) {       super(context);             mArc = new Path();       RectF oval = new RectF(50,100,200,250);;       mArc.addArc(oval, -180, 200);                 mPaintText = new Paint(Paint.ANTI_ALIAS_FLAG);       mPaintText.setStyle(Paint.Style.FILL_AND_STROKE);       mPaintText.setColor(Color.WHITE);       mPaintText.setTextSize(20f);      }      @Override     protected void onDraw(Canvas canvas) {       canvas.drawTextOnPath(MY_TEXT, mArc, 0, 20, mPaintText);             invalidate();     }   } 
like image 136
Pete Houston Avatar answered Sep 21 '22 06:09

Pete Houston