- Found width and height of glyph within run.
- Attempting to break up glyph run into separate elements. Finding the absolute position of glyphs within run is probably the main problem.
- The Geometry of a GlyphRun is a GeometryGroup, and each child Geometry represents a character with a distinct bounds Rect. I can create a single char GlyphRun copying properties from the original run, then set its XY offset to the difference between its Geometry Location and the Location of the Geometry of the original char.
- Looks like it works. If a glyph is not a char, all glyph runs containing that glyph need to be broken up into two or three pieces. The original Element needs to be removed and replacement Elements added. Done, but stuff isn't quite working right..
- Need to dump template bitmaps to disk to debug, split all glyph strings with positive matches and (possibly related) work out why grace note slash is detected as grace tail.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment