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
146
votes
13 answers

UITextView style is being reset after setting text property

I have UITextView *_masterText and after call method setText property font is being reset. It's happening after I change sdk 7. _masterText is IBOutlet, global and properties are set in storyboard. It's only me or this is general SDK…
Błażej
  • 3,617
  • 7
  • 35
  • 62
145
votes
9 answers

complete, monospaced Unicode font?

I'm looking for a good programming font that lets me add comments and string literals in Unicode, usually Japanese and Chinese along with some Latin and Cyrillic languages. So far the situation seems to be "complete, monospace, free, pick 2" and…
nachik
  • 754
  • 3
  • 9
  • 11
142
votes
4 answers

Is there any "font smoothing" in Google Chrome?

I'm using google webfonts and they fine at super large font sizes, but at 18px, they look awful. I've read here and there that there are solutions for font smoothing, but I haven't found any where that explains it clearly and the few snippets I have…
imakeitpretty
  • 2,108
  • 5
  • 16
  • 16
138
votes
21 answers

Change the font of tab text in android design support TabLayout

I'm trying to work on the new TabLayout from the android design library. I want to change tab text to custom font. And,I tried to search some styling related to TabLayout,but ended up to this. Please guide how can I change the tab text fonts.
Dory
  • 7,462
  • 7
  • 33
  • 55
138
votes
6 answers

How to change fonts in matplotlib (python)?

It sounds as an easy problem but I do not find any effective solution to change the font (not the font size) in a plot made with matplotlib in python. I found a couple of tutorials to change the default font of matplotlib by modifying some files in…
SirC
  • 2,101
  • 4
  • 19
  • 24
132
votes
4 answers

How to find out which fonts are referenced and which are embedded in a PDF document

We have a little problem with fonts in PDF documents. In order to put the finger on the problem I'd like to inspect, which fonts are actually embedded in the pdf document and which are only referenced. Is there an easy (and cheap as in free) way to…
Jens Schauder
  • 77,657
  • 34
  • 181
  • 348
131
votes
12 answers

list every font a user's browser can display

Is there a way in javascript to obtain the names of all fonts (or font-families) that the browser can show? (I want to give the user a dropdown with a list of all available fonts, and allow the user to choose a font.) I'd prefer not to have to…
mattsh
  • 5,713
  • 6
  • 23
  • 20
128
votes
5 answers

What is the default font of Sublime Text?

I was looking and could not find an answer on this one. Which is Sublime Text's default font type?
Uninvited Guest
  • 1,865
  • 4
  • 19
  • 17
127
votes
10 answers

Applying a single font to an entire website with CSS

I want to use a single font named "Algerian" across my whole website. So, I need to change all HTML tags and I don't want to write different code for different tags like: button{font-family:Algerian;} div{font-family:Algerian;} The method written…
Michelle Smith
  • 1,123
  • 2
  • 10
  • 17
126
votes
7 answers

Custom font size for Text in SwiftUI

I have a label in my view that I want to use the system font size in medium, with a size of 21 points. I created a custom extension to re-use the font created: extension Font { static var primaryButton: Font { return…
LinusGeffarth
  • 27,197
  • 29
  • 120
  • 174
126
votes
5 answers

Font Face isn't working in IIS 8.0

I have a font-face in my program generated from Font Squirrel I just can't get it to work in IIS, it works in localhost. I added application/font-woff article to my MIME Types but it still doesn't want to work. Context --Fonts ----font…
joetinger
  • 2,589
  • 6
  • 29
  • 43
126
votes
2 answers

How do I use .woff fonts for my website?

Where do you place fonts so that CSS can access them? I am using non-standard fonts for the browser in a .woff file. Let's say its 'awesome-font' stored in a file 'awesome-font.woff'.
Don P
  • 60,113
  • 114
  • 300
  • 432
122
votes
7 answers

UIButton custom font vertical alignment

I've got a UIButton which uses a custom font, which is set when my view loads: - (void)viewDidLoad { [super viewDidLoad]; self.searchButton.titleLabel.font = [UIFont fontWithName: @"FONTNAME" size: 15.0 ]; } The problem I've got is that…
Pete
  • 4,542
  • 9
  • 43
  • 76
120
votes
8 answers

Font size in CSS - % or em?

When setting the size of fonts in CSS, should I be using a percent value (%) or em? Can you explain the advantage?
Mats
  • 14,902
  • 33
  • 78
  • 110
117
votes
7 answers

How to configure an app to run correctly on a machine with a high DPI setting (e.g. 150%)?

I've created a simple Winforms application in C#. When I run the application on a machine with high DPI settings (e.g. 150%), the application gets scaled up. So far so good! But instead of rendering the fonts with a higher font size, all texts are…
Boris
  • 8,551
  • 25
  • 67
  • 120