fontlab_glyport._source_map · declarations 001
Back to fontlab_glyport._source_map
compose
compose(before: str, after: str, origins: list[tuple[int, int]]) -> list[tuple[int, int]]
Unchanged characters retain identity; replacements inherit the edited span.
position
position(text: str, offset: int) -> list[int]
Return one-based Unicode character coordinates, with exclusive span ends.
fontlab_glyport.adaptation_modern.serialize
serialize(original: str, generated: str, origins: list[tuple[int, int]]) -> dict
Export exhaustive generated character spans mapped to original spans.