Home android How to get a font from the .png file?

How to get a font from the .png file?

Author

Date

Category

Please tell me how to pull out the font from the PNG file? Or give a link. I would like to use your font in android application. Sample image with font:

font


Answer 1, Authority 100%

You can not pull out the font, but do all the pictures cut out of your pictures.


Answer 2, Authority 400%

To determine fonts, vector formats must use, and PNG – raster. Custom fonts are connected in Android so. Marking:

& lt; xml version = "1.0" encoding = "UTF-8"? & gt;
& lt; linearlayout XMLNS: Android = "http://schemas.android.com/apk/res/android"
  Android: Orientation = "Vertical"
  Android: layout_width = "fill_parent"
  Android: layout_height = "fill_parent"
  & gt;
  & lt; TextView
    Android: id = "@ + id / font"
    Android: layout_width = "fill_parent"
    Android: layout_height = "wrap_content"
    Android: Text = "This is a custom font."
    / & gt;
& lt; / linearlayout & gt;

Code:

typefacefromasset (getssets (), "fonts / font.ttf");
TextView TV = (TextView) FindViewByid (R.ID.TV);
TV.Settypeface (T);

Answer 3, Authority 200%

http://new.myfonts.com/whattefont/
There is quite simple to find out what font is just from the picture.
And then – download in normal form.

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions