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
116
votes
5 answers

How do I set a textbox's text to bold at run time?

I'm using Windows forms and I have a textbox which I would occassionally like to make the text bold if it is a certain value. How do I change the font characteristics at run time? I see that there is a property called textbox1.Font.Bold but this is…
Diskdrive
  • 18,107
  • 27
  • 101
  • 167
115
votes
6 answers

Webfonts or Locally loaded fonts?

Ever since the troubles brought on by using Cufon I ventured away from using external font resources, but as of late, I have been looking for alternate methods of loading fonts to see if there's a better way; better methods have a way of just…
darcher
  • 3,052
  • 3
  • 24
  • 29
114
votes
7 answers

android set custom font to a paint

I want to draw a text to a paint. How to draw it with a custom font (ex Helvetica ) and bold also? I would preffer to use a system font and not create it from assets. Thanks.
Buda Gavril
  • 21,409
  • 40
  • 127
  • 196
114
votes
8 answers

Webfont Smoothing and Antialiasing in Firefox and Opera

I have custom-made web fonts used on my site. To style my rendering output, I used the following code: //-webkit-text-stroke-width: .05px; //-webkit-text-stroke-color: white; -webkit-font-smoothing: antialiased; This works fine on Safari and Chrome…
matt
  • 42,713
  • 103
  • 264
  • 397
113
votes
14 answers

Transparent text cut out of background

Is there any way to make a transparent text cut out of a background effect like the one in the following image, with CSS? It would be sad to lose all precious SEO because of images replacing text. I first thought of shadows but I can't figure…
Love Dager
  • 2,251
  • 2
  • 18
  • 16
111
votes
21 answers

Using a custom typeface in Android

I want to use a custom font for my android application which I am creating. I can individually change the typeface of each object from Code, but I have hundreds of them. So, Is there a way to do this from the XML? [Setting a custom typeface] Is…
Codevalley
  • 4,593
  • 7
  • 42
  • 56
111
votes
10 answers

How to vertically align text with icon font?

I have a very basic HTML which mix plain text and icon fonts. The problem is that icons are not exactly rendered at the same height than the text:
111
votes
8 answers

How do I set the default font size in Vim?

I am trying to configure the default settings for my GUI with Vim. I already made research on the web, but all the solutions I found and tried did not work. Here are some of the things I tried (in the .vimrc file): set guifont = Monaco:h20 set…
Moebius
  • 6,242
  • 7
  • 42
  • 54
110
votes
18 answers

iOS change navigation bar title font and color

So i have this code that should change the nav bar title font, but it doenst NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys:[UIFont …
aZtraL-EnForceR
  • 1,781
  • 2
  • 16
  • 19
108
votes
7 answers

Get font face under cursor in Emacs

I've been developing my own custom color theme, and it'd be really useful if I could get a list of font-faces affecting the text under the cursor. Something like Textmate's show current scope command. That would save me the trouble of doing M-x…
thedz
  • 5,496
  • 3
  • 25
  • 29
107
votes
13 answers

Wait for fonts to load before rendering web page

I'm using @font-face to embed fonts in my website. First the text renders as the system default, and then (once the font file has loaded presumably) the correct font renders a fraction of a second later. Is there a way to minimise/get rid of this…
wheresrhys
  • 22,558
  • 19
  • 94
  • 162
104
votes
6 answers

How to import a new font into a project - Angular 5

I want to import a new font to my Angular 5 project. I have tried: 1) Copying the file to assets/fonts/ 2) adding it to .angular-cli.json styles but I have checked that the file is not a .css, it is an .otf that works like an .exe (it is an…
bellotas
  • 2,349
  • 8
  • 29
  • 60
104
votes
5 answers

Why does Twitter Bootstrap Use Pixels for Font Size?

Given that Twitter Bootstrap is designed to be responsive / device-friendly, why doesn't it use relative font sizes?
Undistraction
  • 42,754
  • 56
  • 195
  • 331
103
votes
5 answers

Converting and rendering web fonts to base64 - keep original look

I want to defer font loading on my site inspired by deferred font loading logic for Smashing Magazine. Main part of this is converting fonts to base64 and preparing your CSS file. My steps so far: Pick fonts on Google Web Fonts and download…
Jan Peša
  • 6,760
  • 4
  • 27
  • 32
103
votes
12 answers

Is there such a thing as min-font-size and max-font-size?

I'm trying to make a font in a div responsive to the browser window. So far, it has worked perfectly, but the parent div has a max-width of 525px. Resizing the browser further will not make the font stop resizing. This has made me wonder if there is…
Toby van Kempen
  • 1,447
  • 4
  • 13
  • 20