Questions tagged [font-family]

font-family is a CSS property that applies fonts and generic font families (prioritised by the order they are listed) to a given or selected element.

font-family is a CSS property that applies fonts and generic font families (prioritised by the order they are listed) to a given or selected element.

665 questions
219
votes
5 answers

How to Apply global font to whole HTML document

I have a HTML page which includes some text and formatting. I want to make it have the same font-family and the same text-size ignoring all inner formatting of text. I want to set a global font format for the HTML page. How can I achieve this?
Ruchi
  • 5,032
  • 13
  • 59
  • 84
106
votes
3 answers

Do I need to wrap quotes around font family names in CSS?

I remember hearing a long time ago that it was considered "best practice" to wrap quotes around font names that contain multiple words in the CSS font-family property, like this: font-family: "Arial Narrow", Arial, Helvetica, sans-serif; For the…
daGUY
  • 27,055
  • 29
  • 75
  • 119
70
votes
1 answer

What is the default font family in Android?

Starting in API 16, Jellybean Roboto was introduced as available font family to use. See whats "new" in Android 16 here. Specifying android:fontFamily="sans-serif"(Roboto in API 16+) on a TextView the default fontFamily of the TextView? Is…
Jared Burrows
  • 54,294
  • 25
  • 151
  • 185
68
votes
4 answers

How to change the default font family in Flutter

How can I change every text of my app to use a specific font? I can change them individually by using the TextStyle() but how can I make my app default to a specific font? Can you show me how?
Hussein Al-Mosawi
  • 1,464
  • 3
  • 17
  • 37
63
votes
2 answers

How to use font-family lato?

How to use font-family lato ? I have used style like this but not working . How can I do ? Thank you. font-family: Lato, Helvetica, sans-serif; link: http://www.google.com/fonts/specimen/Lato
user3274579
  • 643
  • 1
  • 5
  • 4
52
votes
4 answers

Applying Comic Sans Ms font style

How to write a CSS font style for the following font: font-family: Comic Sans MS CSS rule doesn't work.
user2953119
44
votes
2 answers

How do I Change the FontFamily on a ContentPresenter?

I have a custom template for an expander that is close to the code below. I had to change some of the code to take out custom classes, brushes, etc..