Skip to content

Commit

Permalink
added info about fallback font family to programming guide #661
Browse files Browse the repository at this point in the history
  • Loading branch information
odrobnik committed Nov 15, 2013
1 parent 0a8f919 commit f913b42
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Documentation/Programming Guide-template.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ If you don't know the set of fonts used by your app you can trigger an asynchron
Calling this does not replace entries already existing in the lookup table, for example loaded from the `DTCoreTextFontOverrides.plist` included in the app bundle.

Setting a Fallback Font Family
------------------------------

When encountering a font family in HTML that is not known to the system the fallback font family is used. This can be set like this:

[DTCoreTextFontDescriptor setFallbackFontFamily:@"Helvetica Neue"];

Note that the font family name must be valid on the system that this run on, either because it is a system font or a font you have installed at runtime. If you try to set an invalid font family name an exception will be thrown.

Getting a Tapped Word
-----------------------

Expand Down

0 comments on commit f913b42

Please sign in to comment.