From db162a47f3cbc2cd784dc971f6826f2acf945023 Mon Sep 17 00:00:00 2001 From: Bharat Biradar <62872048+bharat-biradar@users.noreply.github.com> Date: Sat, 6 Mar 2021 02:59:03 +0530 Subject: [PATCH] Add supported custom font formats in official docs (#77230) --- 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 217507ed32..07bbd1ab27 100644 --- a/packages/flutter/lib/src/painting/text_style.dart +++ b/packages/flutter/lib/src/painting/text_style.dart @@ -334,6 +334,16 @@ const double _kDefaultFontSize = 14.0; /// ``` /// {@end-tool} /// +/// #### Supported font formats +/// +/// Font formats currently supported by Flutter : +/// +/// * `.ttc` +/// * `.ttf` +/// * `.otf` +/// +/// Flutter does not support `.woff` and `.woff2` fonts for all platforms. +/// /// ### Custom Font Fallback /// /// A custom [fontFamilyFallback] list can be provided. The list should be an