ui.Path getUiPath(int glyphId) { var path = ui.Path(); var rawPath = getPath(glyphId); rawPath.issueCommands(path); rawPath.dispose(); return path; }