code: protected Rectangle2D getBounds(char[] glyph, int notationContext) {
  		String key = String.valueOf(notationContext)
  			+ "-" + String.valueOf(glyph)
  			+ "-" + getMusicalFont().getName();
  		try {
  			if (bounds.get(key) == null) {
  				FontRenderContext frc = g2.getFontRenderContext();
  				bounds.put(key, new TextLayout(
  						String.valueOf(glyph),//new Character(glyph[0]).toString(),
  						getNotationFontForContext(notationContext),
  						frc).getBounds());
  			}
  			return (Rectangle2D) (bounds.get(key));
  		} catch (RuntimeException e) {
  			System.err.println(e.getMessage() + " key="+key);
  			throw e;
  		}
  	}
docs: Get the bounds of a glyph in the given notation context
  @param glyph {@link abc.notation.Accidental#SHARP}, {@link abc.notation.Accidental#FLAT}...
  @param notationContext {@link #NOTATION_CONTEXT_NOTE} or {@link #NOTATION_CONTEXT_GRACENOTE}