From f8318749605a2780d9b45ee6ba7458544eb7be6a Mon Sep 17 00:00:00 2001 From: omchiii <53796452+omchiii@users.noreply.github.com> Date: Wed, 2 Jun 2021 01:54:02 +0200 Subject: [PATCH] Update TextStyle API Docs (#83627) --- packages/flutter/lib/src/painting/text_style.dart | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/flutter/lib/src/painting/text_style.dart b/packages/flutter/lib/src/painting/text_style.dart index b771e0e473..2105822be5 100644 --- a/packages/flutter/lib/src/painting/text_style.dart +++ b/packages/flutter/lib/src/painting/text_style.dart @@ -426,6 +426,16 @@ const double _kDefaultFontSize = 14.0; /// /// ### Inconsistent platform fonts /// +/// By default, fonts differ depending on the platform. +/// +/// * The default font-family for `Android`,`Fuchsia` and `Linux` is `Roboto`. +/// * The default font-family for `iOS` is `.SF UI Display`/`.SF UI Text`. +/// * The default font-family for `MacOS` is `.AppleSystemUIFont`. +/// * The default font-family for `Windows` is `Segoe UI`. +// +// The implementation of these defaults can be found in: +// /packages/flutter/lib/src/material/typography.dart +/// /// Since Flutter's font discovery for default fonts depends on the fonts present /// on the device, it is not safe to assume all default fonts will be available or /// consistent across devices.