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
804
votes
29 answers

Can I underline text in an Android layout?

How can I define underlined text in an Android layout xml file?
Janusz
  • 187,060
  • 113
  • 301
  • 369
790
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
  • 32,379
  • 13
  • 71
  • 75
593
votes
12 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
  • 20,275
  • 13
  • 66
  • 83
592
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
  • 6,398
  • 5
  • 21
  • 24
576
votes
21 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
  • 9,332
  • 11
  • 50
  • 69
543
votes
9 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
  • 88,392
  • 43
  • 149
  • 167
490
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
  • 20,802
  • 26
  • 75
  • 84
391
votes
12 answers

How to add fonts to create-react-app based projects?

I'm using create-react-app and prefer not to eject. It's not clear where fonts imported via @font-face and loaded locally should go. Namely, I'm loading @font-face { font-family: 'Myriad Pro Regular'; font-style: normal; font-weight: normal; …
Maxim Veksler
  • 29,272
  • 38
  • 131
  • 151
385
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,425
  • 3
  • 25
  • 19
381
votes
3 answers

Why should we include ttf, eot, woff, svg,... in a font-face

In CSS3 font-face, there are multiple font types included like ttf, eot, woff, svg and cff. Why should we use all of these types? If they are special to different browsers, why is the number of them greater than the number of the major web browsers?
user16948
  • 4,801
  • 10
  • 30
  • 41
373
votes
31 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,598
  • 5
  • 21
  • 23
369
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
  • 537,072
  • 198
  • 649
  • 721
323
votes
19 answers

Unicode character for "X" cancel / close?

I want to create a close button using CSS only. I'm sure I'm not the first to do this, so does anyone know which font has an 'x' the same width as height, so that it can be used cross-browser to look like a close button?
Leonti
  • 10,400
  • 11
  • 43
  • 68
314
votes
14 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 in the of the document. I was wondering if there was a way to import the web font from within the CSS file?
David
  • 4,717
  • 8
  • 35
  • 46
305
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
  • 90,477
  • 74
  • 177
  • 219
1
2 3
99 100