How to use desired font in Image Asset in Android Studio?

Swapnil Patel

I was trying to change the application icon of my project. I figured out i had to use Image Asset to create it. I chose the background image and while i chose the foreground to have text. I couldn't use a custom font in it. Any solutions?

Image link to my problem: https://i.stack.imgur.com/nDPmy.png

Can't upload image as i don't have enough reputation points yet.

I tried to check the xml files created by it after clicking OK.. but couldn't find any font-family attribute there. Also tried to search how to add custom fonts to source asset but with no success I only found the answers to add them to the project instead of Image Asset.

Jameido

According to the documentation

You can use the fonts that are installed on your computer.

So you should first install the font, then you should be able to see it in the selector.

Install a font on Mac

Install a font on Windows10

Edit: found a duplicate of your question

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Android Studio not loading image when creating new image asset

分類Dev

Add all sizes of image asset in Android Studio with a PDF or Vector file

分類Dev

How to import font in Android studio

分類Dev

How to change Android Studio's editor font?

分類Dev

Android Studio Image Asset Launcherアイコンの背景色

分類Dev

how to put True type font file in assets folder in android studio

分類Dev

How to turn asset image into bitmap in Flutter/Dart?

分類Dev

Android Studio text font and density

分類Dev

How to use `Open Sans` font style for textview in android?

分類Dev

How to use latest FFMPEG in Android Studio project?

分類Dev

How to install AVD separately and use it in Android Studio

分類Dev

How to use FFmpegMediaPlayer ? (Windows|Android Studio)

分類Dev

IMAGE VIEW ANDROID STUDIO

分類Dev

Android Studio, Design view font change

分類Dev

How use iOS 7 font?

分類Dev

How can I use this font?

分類Dev

How do I insert an image in an activity with android studio?

分類Dev

iOS Photos Framework: how to revert image asset to original

分類Dev

How to Use a For Loop to Print All Desired Values in Python?

分類Dev

Rails 4: How to Use Send to Build Conditional Asset Tag Helpers

分類Dev

How to use Google Cloud Translation API in Android Studio?

分類Dev

How to use the new manifest merger (of Android Studio and Gradle)?

分類Dev

How to use pdfviewer to Display PDF from Firebase in Android Studio

分類Dev

Is there any way to use Android Studio in Ubuntu? If so, then how?

分類Dev

Unicode emoji characters use different image/font based on browser

分類Dev

Android Studio Fullscreen Background Image with android:background

分類Dev

How to use Icons like Font Awesome in Gatsby

分類Dev

How to use the Device's Default Font in Flutter?

分類Dev

How to use Font Awesome in Xamarin.iOS?

Related 関連記事

  1. 1

    Android Studio not loading image when creating new image asset

  2. 2

    Add all sizes of image asset in Android Studio with a PDF or Vector file

  3. 3

    How to import font in Android studio

  4. 4

    How to change Android Studio's editor font?

  5. 5

    Android Studio Image Asset Launcherアイコンの背景色

  6. 6

    how to put True type font file in assets folder in android studio

  7. 7

    How to turn asset image into bitmap in Flutter/Dart?

  8. 8

    Android Studio text font and density

  9. 9

    How to use `Open Sans` font style for textview in android?

  10. 10

    How to use latest FFMPEG in Android Studio project?

  11. 11

    How to install AVD separately and use it in Android Studio

  12. 12

    How to use FFmpegMediaPlayer ? (Windows|Android Studio)

  13. 13

    IMAGE VIEW ANDROID STUDIO

  14. 14

    Android Studio, Design view font change

  15. 15

    How use iOS 7 font?

  16. 16

    How can I use this font?

  17. 17

    How do I insert an image in an activity with android studio?

  18. 18

    iOS Photos Framework: how to revert image asset to original

  19. 19

    How to Use a For Loop to Print All Desired Values in Python?

  20. 20

    Rails 4: How to Use Send to Build Conditional Asset Tag Helpers

  21. 21

    How to use Google Cloud Translation API in Android Studio?

  22. 22

    How to use the new manifest merger (of Android Studio and Gradle)?

  23. 23

    How to use pdfviewer to Display PDF from Firebase in Android Studio

  24. 24

    Is there any way to use Android Studio in Ubuntu? If so, then how?

  25. 25

    Unicode emoji characters use different image/font based on browser

  26. 26

    Android Studio Fullscreen Background Image with android:background

  27. 27

    How to use Icons like Font Awesome in Gatsby

  28. 28

    How to use the Device's Default Font in Flutter?

  29. 29

    How to use Font Awesome in Xamarin.iOS?

ホットタグ

アーカイブ