Questions tagged [custom-font]
496 questions
269
votes
21 answers
Android - Using Custom Font
I applied a custom font to a TextView, but it doesn't seems to change the typeface.
Here is my code:
Typeface myTypeface = Typeface.createFromAsset(getAssets(), "fonts/myFont.ttf");
TextView myTextView =…

RATTLESNAKE
- 3,218
- 2
- 21
- 24
196
votes
6 answers
How do I install a custom font on an HTML site
I am not using flash or php - and I have been asked to add a custom font to a simple HTML layout. "KG June Bug"
I have it downloaded locally - is there a simple CSS trick to accomplish this?

adam
- 2,830
- 5
- 31
- 37
182
votes
30 answers
Failed to decode downloaded font, OTS parsing error: invalid version tag + rails 4
I am doing assets pre-compile, and running the application in production mode. After compilation when I load the my index page I got followings warnings in the chrome console:
Failed to decode downloaded font:…

Deepti Kakade
- 3,053
- 3
- 19
- 30
108
votes
15 answers
How to change font face of Webview in Android?
I want change the default font of webview to a custom font. I'm using webview in developing an bilingual browser app for Android.
I tried getting an instance of custom typeface by placing my custom font in assets. But still couldn't set webview's…

Dhanika
- 1,271
- 2
- 9
- 13
70
votes
7 answers
Custom font in a storyboard?
I have a font added to my iOS project. It's in the project and copied when the project builds. It appears to be a valid font and will show up if I list all fonts on the device through the app. I have the plist set up properly to include the font.…

slycrel
- 4,275
- 2
- 30
- 30
62
votes
10 answers
How to use custom font with WebView
Now I want to display some unicode characters and I have used tag: something here. But it seems that WebView can not find the Arial
font because I can only see UFO-characters. Do I have to copy arial.ttf to
somewhere or…
user164542
55
votes
11 answers
Xcode 8 custom font doesn't show up in interface builder
I am trying to use custom font (Bebas Neue) in my iOS application. The steps I took are:
Copy the .otf files to the project.
Confirm the .otf files have set the project as target.
Added the .otf files in 'Fonts provided by application' in plist.
In…

chengsam
- 7,315
- 6
- 30
- 38
49
votes
2 answers
UITextView renders custom font incorrectly in iOS 7
My app uses a UITextView to input Syriac text (Estrangelo font), but UITextView renders some letters incorrectly like this:
I tested it with a UILabel and a UITextView. UILabel displays it correctly, but UITextView incorrectly displays the top dots…

LE SANG
- 10,955
- 7
- 59
- 78
46
votes
17 answers
Custom Font in ios not working
I want to use HelveticaNeue-UltraLight in my ios application. I'm adding the font file as a resource to my project and adding the "Fonts provided by application" key in the plist file. The file name is HelveticaNeue.dfont and I've added it to the…

the Reverend
- 12,305
- 10
- 66
- 121
34
votes
8 answers
Add custom font for complete android application
In my application I need to use helvetica font for all the textviews and edit-text fields. Is there any way to do this other than using settypeface method for every textview ? Any suggestion would be a great help.
Thanks in advance !

Chrishan
- 4,076
- 7
- 48
- 67
31
votes
3 answers
Custom Fonts for DOMPDF
I'm Using DOM PDF 0.6.0 Beta 2. I want to use custom fonts (Fonts: 'Segeo Print', 'Lucida Handwriting','Airplanes in the Night Sky') in PDF file.
I followed the guidelines to install and use fonts in my PHP Code, which is given here…

pinaldesai
- 1,835
- 2
- 13
- 22
24
votes
4 answers
Assets folder in Android Studio?
Im trying to use a custom font, and I've read that I suppose to place the fonts in assets/fonts. I'm using Android Studio and it doesn't seem like I have a assets folder. So I created one. But my app crashes when I place the assets folder in…

Jojo
- 490
- 1
- 7
- 22
22
votes
2 answers
Android Custom font Spannable Typeface Span
I am using Helvetica fonts throughout my application. Currently I am creating the fonts separately from assets. So I have say these three
HelveticaNeue = Typeface.createFromAsset(application.getAssets(), "fonts/HelveticaNeue.ttf");
HelveticaNeueBold…

Leo
- 4,652
- 6
- 32
- 42
22
votes
6 answers
How to use custom fonts in a mac application?
I try to use custom fonts in my swift app, but they don't load.
I copy the fonts.ttf in my resources folder, and I added the names in Info.plist under "Fonts provided by application " key.
I've try with "Application fonts resource path" key from…

C-Viorel
- 1,801
- 3
- 22
- 41
21
votes
8 answers
Custom Fonts in Android PhoneGap
I tried to make custom fonts for my application. For that, I wrote this code in my html file: