SmuflMetadata class

Constructors

SmuflMetadata()
factory
SmuflMetadata.forFont(SmuflFontDescriptor font)
Creates an INDEPENDENT loader, so an app can hold several music fonts at once (or load a different one in a test) instead of being pinned to the single global Bravura instance.

Properties

font SmuflFontDescriptor
The font this instance describes.
no setter
hashCode int
The hash code for this object.
no setterinherited
isNotLoaded bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearCache() → void
Limpa o cache de glifos
getAllEngravingDefaults() Map<String, double>
New: Gets all os engraving defaults
getAllGlyphNames() List<String>
Gets all os glyph names disponíveis
getCodepoint(String glyphName) String
getEngravingDefault(String key, [double fallback = 0.0]) double
getEngravingDefaultValue(String key) double?
New: Gets a engraving default específico @param key Parameter name (ex: 'stemThickness', 'beamThickness') @return Value in staff spaces
getGlyphAdvanceWidth(String glyphName) double?
New: Gets advance width de a glyph in staff spaces
getGlyphAnchor(String glyphName, String anchorName) Offset?
New: Gets a anchor específico de a glyph @param glyphName SMuFL glyph name @param anchorName Anchor name (ex: 'stemUpSE', 'stemDownNW') @return Offset in staff spaces, or null if not encontrado
getGlyphAnchors(String glyphName) → GlyphAnchors?
Gets anchors de a glifo
getGlyphBBox(String glyphName) Map<String, List<double>>?
getGlyphBoundingBox(String glyphName) → GlyphBoundingBox?
Gets bounding box de a glifo as object
getGlyphClasses() Map<String, List<String>>?
Gets informações de classs de glifos (if disponível nos metadados)
getGlyphHeight(String glyphName) double
Gets height de a glifo in SMuFL units
getGlyphHeightInPixels(String glyphName, double staffSpace) double
Gets height de a glifo in pixels
getGlyphInfo(String glyphName) → SmuflGlyphInfo?
Returns complete information for a glyph, including bounding box and anchors
getGlyphsByCategory(String category) List<String>
Gets glifos by categoria
getGlyphWidth(String glyphName) double
Gets width de a glifo in SMuFL units Uses advance width if disponível, senão Uses bounding box width
getGlyphWidthInPixels(String glyphName, double staffSpace) double
Gets width de a glifo in pixels
getStylisticSets() Map<String, dynamic>?
Gets conjuntos estilísticos (if disponível nos metadados)
hasGlyph(String glyphName) bool
Checks if a glifo existe na fonte
load({SmuflFontDescriptor? font}) Future<void>
Loads (once) the SMuFL metadata for font, or for this instance's font.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
searchGlyphs(String pattern) List<String>
Finds glifos by default
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited