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
19315 questions
780
votes
32 answers

Can I embed a custom font in an iPhone application?

I would like to have an app include a custom font for rendering text, load it, and then use it with standard UIKit elements like UILabel. Is this possible?
Airsource Ltd
  • 31,336
  • 13
  • 69
  • 74
741
votes
26 answers

Can I underline text in an Android layout?

How can I define underlined text in an Android layout xml file?
Janusz
  • 176,216
  • 111
  • 293
  • 365
539
votes
19 answers

How to add some non-standard font to a website?

Is there a way to add some custom font on a website without using images, Flash or some other graphics? For example, I was working on a wedding website, and I found a lot of nice fonts for that subject. But I can't find the right way to add that…
vaske
  • 8,884
  • 10
  • 45
  • 68
531
votes
11 answers

CSS Font Border?

With all the new CSS3 border stuff going on (-webkit, ...) is it now possible to add a border to your font? (Like the solid white border around the blue Twitter logo). If not, are there any not-too-ugly hacks that will accomplish this in CSS/XHTML…
Lars Tackmann
  • 18,135
  • 13
  • 60
  • 80
493
votes
2 answers

Using .otf fonts on web browsers

I'm working on a website that requires font trials online, the fonts I have are all .otf Is there a way to embed the fonts and get them working on all browsers? If not, what other alternatives do I have ?
Naruto
  • 5,388
  • 4
  • 16
  • 24
486
votes
7 answers

How to add multiple font files for the same font?

I'm looking at the MDC page for the @font-face CSS rule, but I don't get one thing. I have separate files for bold, italic and bold + italic. How can I embed all three files in one @font-face rule? For example, if I have: @font-face { …
Felix
  • 84,032
  • 41
  • 145
  • 163
459
votes
18 answers

How to change font size in Eclipse for Java text editors?

I have just tried to change my font size in Eclipse 3.6.0 in the following way: General → Appearance → Colors and Fonts → Java Editor text font However, the font size only changed in the file I had open. How can I change the font size for all Java…
Venkat
  • 18,946
  • 25
  • 71
  • 83
355
votes
17 answers

How to set the font size in Emacs?

I also want to save the font size in my .emacs file.
Juba
  • 4,105
  • 3
  • 23
  • 19
337
votes
30 answers

How do I make an attributed string using Swift?

I am trying to make a simple Coffee Calculator. I need to display the amount of coffee in grams. The "g" symbol for grams needs to be attached to my UILabel that I am using to display the amount. The numbers in the UILabel are changing dynamically…
dcbenji
  • 4,208
  • 5
  • 18
  • 23
321
votes
4 answers

How do you change the document font in LaTeX?

How do you change the font for the whole document to sans-serif (or anything else)?
nickf
  • 499,078
  • 194
  • 614
  • 709
294
votes
16 answers

How to change the font on the TextView?

How to change the font in a TextView, as default it's shown up as Arial? How to change it to Helvetica?
Praveen
  • 86,996
  • 72
  • 173
  • 215
292
votes
4 answers

Proper MIME type for .woff2 fonts

Today I updated Font Awesome package to 4.3.0 and noticed that woff2 font was added. That file is linked in CSS so I need to configure nginx to serve woff2 files properly. Currently I have this block in nginx config for fonts: location ~*…
Limon Monte
  • 44,025
  • 43
  • 163
  • 189
280
votes
12 answers

How to import Google Web Font in CSS file?

I'm working with a CMS which I only have access to the CSS file. So, I can't include anything thing in the HEAD of the document. I was wondering if there was a way to import the web font from within the CSS file?
David
  • 4,359
  • 8
  • 32
  • 46
278
votes
19 answers

How to host google web fonts on my own server?

I need to use some google fonts on an intranet application. The clients may or may not have internet connection. Reading the license terms, it appears that its legally allowed.
Samarth Bhargava
  • 3,998
  • 3
  • 13
  • 14
276
votes
3 answers

Valid values for android:fontFamily and what they map to?

In the answer to this question the user lists values for android:fontFamily and 12 variants (see below). Where do these values come from? The documentation for android:fontFamily does not list this information in any place (I checked here, and…
Christopher Perry
  • 36,832
  • 42
  • 136
  • 182
1
2 3
99 100