Skip to content
Browse files

added info about fallback font family to programming guide #661

  • Loading branch information...
1 parent fb129b6 commit 7ab8f36e89992171d0a701165af7430563f632f4 @odrobnik odrobnik committed Nov 15, 2013
Showing with 9 additions and 0 deletions.
  1. +9 −0 Documentation/Programming Guide-template.markdown
9 Documentation/Programming Guide-template.markdown
@@ -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

0 comments on commit 7ab8f36

Please sign in to comment.
Something went wrong with that request. Please try again.