getGlyphWidthInPixels method

double getGlyphWidthInPixels(
  1. String glyphName,
  2. double staffSpace
)

Gets width de a glifo in pixels

Implementation

double getGlyphWidthInPixels(String glyphName, double staffSpace) {
  return getGlyphBoundingBox(glyphName)?.widthInPixels(staffSpace) ?? 0.0;
}