fontconfig

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0 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 fontconfig lets a text.Collection use libfontconfig to match fonts, as Flutter's Linux engine does: the family names, the user's UI font, and the emoji, CJK and per-language preferences then follow the fontconfig settings. The binding itself is in internal/platform/linux/fontconfig (SPEC §8.1: C libraries are called only under internal/platform).

Flutter: no counterpart

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Matcher

type Matcher struct {
	// contains filtered or unexported fields
}

Matcher is a text.Matcher over libfontconfig.

Flutter: no counterpart

func Open

func Open(ctx context.Context) (*Matcher, error)

Open loads libfontconfig and the user's configuration. It fails like fontconfig.Open: with FontconfigLoadFailed when the library is not there, so the caller can use the font scan of the text.Collection instead.

Flutter: no counterpart

func (*Matcher) Close

func (m *Matcher) Close()

Close releases the configuration. The Matcher must not be used after.

Flutter: no counterpart

func (*Matcher) Match

func (m *Matcher) Match(ctx context.Context, family string, weight int, italic bool, lang string) ([]text.FontFile, error)

Match implements text.Matcher.

Flutter: no counterpart

Jump to

Keyboard shortcuts

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