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
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
194
votes
8 answers

How can I extract embedded fonts from a PDF as valid font files?

I'm aware of the pdftk.exe utility that can indicate which fonts are used by a PDF, and wether they are embedded or not. Now the problem: given I had PDF files with embedded fonts -- how can I extract those fonts in a way that they are re-usable as…
simplybest55
190
votes
2 answers

What does the forward slash mean in the CSS font shorthand?

I'm seeing the following CSS declaration in a stylesheet: font: 12px/18px ... What does the 12px/18px part mean exactly?
Ben
  • 60,438
  • 111
  • 314
  • 488
182
votes
114 answers

Recommended Fonts for Programming?

What fonts do you use for programming, and for what language/IDE? I use Consolas for all my Visual Studio work, any other recommendations?
tbreffni
  • 5,082
  • 5
  • 31
  • 30
182
votes
12 answers

Downloading a Google font and setting up an offline site that uses it

I have a template and it has a reference to a Google font like this: How can I download it and set it up to use in my…
user2147954
  • 2,045
  • 3
  • 15
  • 10
174
votes
18 answers

Custom fonts and XML layouts (Android)

I'm trying to define a GUI layout using XML files in Android. As far as I can find out, there is no way to specify that your widgets should use a custom font (e.g. one you've placed in assets/font/) in XML files and you can only use the system…
DrDefrost
  • 1,807
  • 3
  • 12
  • 5
173
votes
17 answers

Set a default font for whole iOS app?

I have a custom font I want to use for everything displaying text in my app, labels, text views etc. Is there a way to set the default font (labels by default use SystemFont) for the whole app?
Sam Jarman
  • 7,277
  • 15
  • 55
  • 100
169
votes
8 answers

How to write WinForms code that auto-scales to system font and dpi settings?

Intro: There's a lot of comments out there that say "WinForms doesn't auto-scale to DPI/font settings well; switch to WPF." However, I think that is based on .NET 1.1; it appears they actually did a pretty good job of implementing auto-scaling in…
Brian Kennedy
  • 3,499
  • 3
  • 21
  • 27
168
votes
10 answers

Keyboard shortcut to change font size in Eclipse?

It is relatively straightforward to change font sizes in Eclipse through preferences (and answered several times in this forum). However I'd like to change font size quickly (e.g., with Ctrl++ and Ctrl+- like in Linux terminal or Ctrl+mouse wheel…
Doug
  • 1,925
  • 3
  • 13
  • 9
164
votes
25 answers

Font Awesome icon inside text input element

I am trying to insert a user icon inside username input field. I've tried one of the solution from the similar question knowing that background-image property won't work since Font Awesome is a font. The following is my approach and I can't get…
Seong Lee
  • 10,314
  • 25
  • 68
  • 106
157
votes
12 answers

WPF Blurry fonts issue- Solutions

Problem is described and demonstrated on the following links: Paul Stovell WPF: Blurry Text Rendering www.gamedev.net forum Microsoft Connect: WPF text renderer produces badly blurred text on small font sizes Explanation: Text Clarity in WPF.…
Robert Vuković
  • 4,677
  • 6
  • 31
  • 47
156
votes
11 answers

How to detect which one of the defined font was used in a web page?

Suppose I have the following CSS rule in my page: body { font-family: Calibri, Trebuchet MS, Helvetica, sans-serif; } How could I detect which one of the defined fonts were used in the user's browser? For people wondering why I want to do this…
Pat
  • 36,282
  • 18
  • 72
  • 87
150
votes
7 answers

Changing fonts in ggplot2

Once upon a time, I changed my ggplot2 font using windowsFonts(Times=windowsFont("TT Times New Roman")). Now, I can't get it off of this. In trying to set family="" in ggplot2 theme(), I can't seem to generate a change in fonts as I compile the MWE…
EngBIRD
  • 1,915
  • 3
  • 18
  • 22
148
votes
7 answers

Specifying Style and Weight for Google Fonts

I am using Google fonts in a few of my pages and hit a wall when trying to use variations of a font. Example: http://www.google.com/webfonts#QuickUsePlace:quickUse/Family:Open+Sans I am importing three faces, Normal, Bold, ExtraBold via the link…
Steven Garcia
  • 2,814
  • 2
  • 24
  • 12
147
votes
16 answers

Preloading @font-face fonts?

Is it possible to preload or otherwise cache @font-face fonts, most likely with javascript, before the page loads so you don't get that ugly jump when the page finally does load?
dougoftheabaci