fonts

package
v1.9.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2026 License: BSD-3-Clause Imports: 1 Imported by: 2 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package fonts holds the fonts that Glutter bundles with the program: Roboto, the first family of Flutter's Linux typography, and Material Icons. scripts/fetch-fonts.sh downloads them (the pins and hashes are in VERSIONS), and the licenses sit next to them: Roboto is under the SIL Open Font License; the Material Icons font is the one of the Flutter SDK, with the license text that ships with it (Creative Commons Attribution 4.0).

Flutter: packages/flutter/lib/src/material/typography.dart (the Roboto family) and the MaterialIcons font of the Flutter SDK

Index

Constants

View Source
const (
	// RobotoFamily is the family of the bundled Roboto font.
	//
	// Flutter: material/typography.dart Typography
	RobotoFamily = "Roboto"
	// MaterialIconsFamily is the family of the bundled Material Icons font.
	//
	// Flutter: widgets/icon_data.dart IconData.fontFamily
	MaterialIconsFamily = "MaterialIcons"
)

The names of the bundled families, as a TextStyle's fontFamily refers to them.

Variables

This section is empty.

Functions

func MaterialIcons

func MaterialIcons() []byte

MaterialIcons returns the Material Icons font. The caller must not change the bytes.

Flutter: widgets/icon_data.dart IconData

func MaterialIconsLicense

func MaterialIconsLicense() string

MaterialIconsLicense returns the license text of the Material Icons font.

Flutter: no counterpart

func Register

func Register(c interface {
	AddBundled(family string, data []byte) error
}) error

Register adds the bundled families to a font collection, which is anything with the AddBundled method of internal/text's Collection. It stops at the first error.

Flutter: no counterpart

func Roboto

func Roboto() []byte

Roboto returns the Roboto variable font (Roboto 3, with the axes ital, wdth and wght). The caller must not change the bytes.

Flutter: material/typography.dart Typography

func RobotoLicense

func RobotoLicense() string

RobotoLicense returns the license text of the Roboto font.

Flutter: no counterpart

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL