Skip to content

[font] Consider reducing public API #230

@benoitkugler

Description

@benoitkugler

The font package currently exposes several types and methods only meant to be used internally by the harfbuzz shaper. Since we very closely follow the C++ implementation, we may introduce breaking changes every time we port new changes (see #225 for some examples).

The font package has this structure because it seemed better to have a separation of concerns between Harfbuzz logic and font metrics access, but it appears now that this separation is not worth holding to.

As hinted by @andydotxyz (in #225 (review)), we should consider hiding away the internal methods.

Here are the types and methods to look for :

One solution could be to move them to unexported symbols in the harfbuzz package. What do you think ?

(cc @andydotxyz @whereswaldon)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions