Questions tagged [fonts]

A font is an electronic data file containing a set of glyphs, characters, or symbols such as dingbats. Although the term font first referred to a set of metal type sorts in one style and size, since the 1990s most fonts are digital, used on computers.

Font files contain one or more fonts that can be accessed by the operating system and applications. Most modern fonts are stored in either the OpenType or TrueType formats, which can be used by both Macintosh and Windows computers.

Common font file extensions include .OTF, .TTF, .SVG and .FNT.

1. OpenType Font :

Font format developed by Adobe and Microsoft; combines aspects of PostScript and TrueType font formats; fully scalable, meaning the font can be resized without losing quality.

The OpenType font format is supported by Mac OS X and Windows 2000 and later.

2. TrueType Font :

Font file format created by Apple, but used on both Macintosh and Windows platforms; can be resized to any size without losing quality; also looks the same when printed as it does on the screen.

The TrueType font is the most common font format used by both Mac OS X and Windows platforms.

Links:

  1. Computer-font
  2. TrueType Font
  3. OpenType Font
20971 questions
102
votes
9 answers

Custom fonts in iOS 7

I'm developing a game and I would like to use a custom font in my app. I'm using SpriteKit for it, if that's important. I've tried using this https://github.com/deni2s/IBCustomFonts but I cannot get it to work with this font…
José María
  • 2,835
  • 5
  • 27
  • 42
102
votes
4 answers

Icon Fonts: How do they get rendered by web pages?

I understand that icon fonts are just fonts and that you can get the icons by just calling their classname, but how do icon fonts work? I've tried checking the related icon font resources loaded in Chrome to see how icon fonts display icons (in…
Vivek Chandra
  • 4,240
  • 9
  • 33
  • 38
101
votes
12 answers

Android: Want to set custom fonts for whole application not runtime

Is it possible to set any custom font in every control of the application? And not necessarily runtime ? (i.e. from xml if possible or only once for whole application in JAVA file) I can set the font for one control from this code. public static…
Prasham
  • 6,646
  • 8
  • 38
  • 55
99
votes
3 answers

Use multiple @font-face rules in CSS

How can I use more than @font-face rule in my CSS? I've inserted this into my stylesheet: body { background: #fff url(../images/body-bg-corporate.gif) repeat-x; padding-bottom: 10px; font-family: 'GestaRegular', Arial, Helvetica,…
Tim
  • 2,589
  • 6
  • 34
  • 39
99
votes
14 answers

How can I change the Bootstrap default font family using font from Google?

I am creating a blog site and I want to change the Bootstrap font. In my import CSS in header I added this font How can I use this as my…
user3651129
  • 1,159
  • 2
  • 12
  • 10
98
votes
12 answers

iPhone system font

What is the name of the default system font on the iPhone? I would like to retrieve this for customizing a UIView.
Ken
  • 30,811
  • 34
  • 116
  • 155
96
votes
11 answers

Using custom font in android TextView using xml

I have added a custom font file to my assets/fonts folder. How do I use it from my XML? I can use it from code as follows: TextView text = (TextView) findViewById(R.id.textview03); Typeface tf = Typeface.createFromAsset(getAssets(),…
Nilanchala
  • 5,891
  • 8
  • 42
  • 72
96
votes
7 answers

How to set font custom font to Spinner text programmatically?

I have a ttf font file in my assets folder. I know how to use it for textviews with: Typeface externalFont=Typeface.createFromAsset(getAssets(), "fonts/HelveticaNeueLTCom-Lt.ttf"); textview1.setTypeface(externalFont); I have defined look for my…
DixieFlatline
  • 7,895
  • 24
  • 95
  • 147
95
votes
6 answers

Set MacVim default font

How do I set the default font for MacVim? I have tried adding the following line set guifont = Monaco:h12 to either of the following…
Kit
  • 30,365
  • 39
  • 105
  • 149
95
votes
11 answers

Force Non-Monospace Font into Fixed Width Using CSS

Is there any way to force a font to be monospaced using CSS? By this I mean, using a non-monospace font, can you force the browser to render each character at a fixed width?
Jon Raasch
  • 3,703
  • 6
  • 30
  • 32
92
votes
9 answers

How to change CollapsingToolbarLayout typeface and size?

I want to change CollapsingToolbarLayout font size and its typeface. How I can achieve that?
91
votes
13 answers

How do I get Visual Studio Code to display italic fonts in formatted code?

How do I configure VS Code to support italic styles, like in this picture? My current settings: { "editor.fontLigatures": true, "editor.fontFamily": "Operator Mono" }
undefined
  • 6,366
  • 12
  • 46
  • 90
91
votes
3 answers

Why isn't there a font that contains all Unicode glyphs?

Pretty much as the title says. Rendering all of the unicode format correctly what with composite characters and characters that affect other characters and ligatures is really hard, I understand that. We have fonts that seem to be designed for…
Jeremy Kemball
  • 1,175
  • 1
  • 9
  • 14
91
votes
1 answer

Languages supported by "latin" vs "latin-extended" glyphs in fonts on Google Web Fonts?

Some fonts on Google Web Fonts support multiple "character sets". The thing is, if the web font I use only serves the "latin" glyphs, users who translate the page to a language whose glyphs aren't supported will clearly notice the messed up…
its_me
  • 10,998
  • 25
  • 82
  • 130
91
votes
11 answers

UILabel font size?

I can't seem to modify the font size of a UILabel with the following code: itemTitle.font = [UIFont systemFontOfSize:25]; As i increase the number 25 to something greater, it seems to only add a top margin to the label, which consequently pushes…
John
  • 32,403
  • 80
  • 251
  • 422