Skip to content

Maintenance of this package and alternatives #230

Open

Description

@Goldziher

Hi there,

This package appears to be unmaintained.

We forked it - and are publishing our own maintained fork as xberg-ttf-parser. Its a part of the https://github.com/xberg-io/xberg repository (see crates).

You can point further fixes and issues there if you rely on it.

Edit:

If you are a maintainer of ttf-parser itself and are reading this, please respond to this issue and tell us if you do intend to maintain this package going forwards.

Activity

  1. Goldziher commented on Aug 5, 2026

    @Goldziher
    CollaboratorAuthor
  2. alerque commented on Aug 5, 2026

    @alerque
    Collaborator

    I think the main development effort by most interested parties has completely shifted to fontations as replacing this entirely and eventually seeing this project deprecated. In fact I think @behdad had in mind doing that sooner rather than later (c.f. harfbuzz/rustybuzz#166 (comment)).

    I might be able to jump in and help drag out the maintenance a bit longer with patch releases if there is an interest and use for that. I think it would be necessary to say what the value proposition is for that? And why would migrating to fontations not be more viable than forking or contributing to the maintenance of this?

  3. Goldziher commented on Aug 5, 2026

    @Goldziher
    CollaboratorAuthor

    To be explicit about what the fork actually is, and to credit the people whose work it carries: it is v0.25.1 plus nine open pull requests from this repo, cherry-picked as-is. None of it is ours except #228.

    Upstream PR Author Fix
    #203 @dereified Document that Face::style() falls back to the head mac style bits
    #207 @asibahi Face::set_variation returns None for an axis the face does not define
    #216 @SamusAranX Read the fvar HIDDEN_AXIS flag from bit 0, not reserved bit 3
    #222 @scadastrangelove Guard the CFF2 blend operator against an empty argument stack
    #223 @scadastrangelove Promote avar axis value mapping to i32 so it cannot silently wrap
    #224 @scadastrangelove Cap total component visits in glyf / gvar composite outlining
    #225 @scadastrangelove Cap total paint-graph node visits in COLRv1 painting
    #226 @asibahi Parse loca for a font carrying the maximum 65535 glyphs
    #228 @tobocop2 Ignore the deprecated dotsection operator in CFF charstrings

    Each row is recorded in the fork's README with the upstream PR and the cherry-pick commit:
    https://github.com/xberg-io/xberg/blob/main/crates/xberg-ttf-parser/README.md#carried-upstream-prs

    Nothing was rewritten or reattributed. Licensing is unchanged — MIT, retaining the upstream copyright notice.

    Worth saying that several of these are correctness bugs rather than cleanups, and they are all still open here with no maintainer response: #226 drops every TrueType outline in a 65535-glyph face, and #228 makes i, j, ! and . render blank in fonts converted from Type 1.

  4. Goldziher commented on Aug 5, 2026

    @Goldziher
    CollaboratorAuthor

    Thanks for responding @alerque - we would of course prefer not to maintain this crate. Lets see. If you do decide to deprcate this project, we are fine with maintaining our own fork. So lemme know.

    Our fork carries most of the content of the open PRs presently on this repo and some modernization.

  5. behdad commented on Aug 5, 2026

    @behdad
    Member

    Can you please send a PR to add your fork note to this package and declare it deprecated?

  6. Goldziher commented on Aug 5, 2026

    @Goldziher
    CollaboratorAuthor

    Can you please send a PR to add your fork note to this package and declare it deprecated?

    sure

  7. behdad commented on Aug 5, 2026

    @behdad
    Member

    I mean, I'm also fine giving you access to maintain here. With a proper "maintenance mode" note.

  8. Goldziher commented on Aug 5, 2026

    @Goldziher
    CollaboratorAuthor

    That would be preferable. If you could give me and @tobocop2 maintainer access, we can take over. happy to do so.

    @behdad

  9. behdad commented on Aug 5, 2026

    @behdad
    Member

    Done.

  10. Goldziher commented on Aug 5, 2026

    @Goldziher
    CollaboratorAuthor

    closing this issue first. Thanks!

  11. asibahi commented on Aug 5, 2026

    @asibahi
    Contributor

    You should include this PR as well as it is a bugfix to match code with spec: #212

  12. tobocop2 commented on Aug 5, 2026

    @tobocop2
    Collaborator

    Done.

    thank you!

  13. behdad commented on Aug 5, 2026

    @behdad
    Member

    If you don't mind, please add big "maintenance-only" and "fontations" replacement notice at the beginning of the readme. Thanks.

  14. Goldziher commented on Aug 5, 2026

    @Goldziher
    CollaboratorAuthor

    Sure.

  15. alerque commented on Aug 5, 2026

    @alerque
    Collaborator

    I hate to be a wet blanket, but something is a bit off here. Maintenance is one thing and clearly many of the changes and pending PRs getting attention is for the better, but it feel like a bunch of what is happening here is throwing LLM generated code at an old code base with minimal review that is well beyond "maintenance". So far there have been 3 new breaking changes introduced the Rust API today — which is going to take easy wins like patch releases to fix known issues that people can update to with low friction off the table. Of course breaking releases are possible too, but that's more disruptive than "maintenance-mode".

    I'm not even saying we shouldn't go beyond maintenance ... but a little more care and perhaps review along the way is probably in order. For example ordering PR merges such that all the non-breaking changes landed first and we could do a patch release to clear up the RUSTSEC notice and address some of the more basic issues in a way that would not disrupt any consumers, and then moving on to the breaking changes would have been in order I think.

  16. Goldziher commented on Aug 6, 2026

    @Goldziher
    CollaboratorAuthor

    @alerque -- you are welcome to maintain this package.

    @behdad please grant me crates.io access so I can publish the next minor.

  17. behdad commented on Aug 6, 2026

    @behdad
    Member

    @behdad please grant me crates.io access so I can publish the next minor.

    @khaledhosny. I don't have access.

  18. reopened this on Aug 6, 2026
  19. behdad commented on Aug 6, 2026

    @behdad
    Member

    I think @alerque raises valid concerns, and similar concerns were raised to me by other stakeholders in private.

    From the HarfBuzz org point of view, my preference is to just archive this repo and point people to whoever wants to develop it further, if the proposed maintenance is not just patching the most pressing security issues.

    That said, I don't know what the correct course of action is gonna be regarding crates.io.

    Sorry for causing confusion. I should have consulted with people who actually have been taking care of this repo instead of speaking for everybody.

  20. Goldziher commented on Aug 6, 2026

    @Goldziher
    CollaboratorAuthor

    I think @alerque raises valid concerns, and similar concerns were raised to me by other stakeholders in private.

    From the HarfBuzz org point of view, my preference is to just archive this repo and point people to whoever wants to develop it further, if the proposed maintenance is not just patching the most pressing security issues.

    That said, I don't know what the correct course of action is gonna be regarding crates.io.

    Sorry for causing confusion. I should have consulted with people who actually have been taking care of this repo instead of speaking for everybody.

    very well. We will bypass the need for this package.

  21. reopened this on Aug 6, 2026
  22. alerque commented on Aug 6, 2026

    @alerque
    Collaborator

    At least another pair of eyes should go over things before a release is tagged. Skimming activity I see a lot of good stuff happened in a rush, but I have several concerns about it being tagged and released in the current form.

    I think it matters that when the previous maintainers passed it off to this org and I did some touchups we were all in agreement about not breaking things for existing consumers while the process of developing fontations was in progress and the migration path there was going to be slow. This batch of changes has numerous breaking changes, most of which seem unnecessary to address the security concerns and fix the bugs. I could be wrong there as haven't worked through all the changes yet. I think it was poor planning to rush to merge everything all at once without even having a discussion here about how the next release would work and what things should be allowed to break.

    I think it's reasonable to take a look at this stuff and give it a fair shake and some testing, check the release order can be fixed to have a patch first then a breaking bump, make sure the MSRV isn't going to bite any major consumers, etc. I'm willing to have a look at it and help do a sound publish operation, but ya'll gotta take a deep breath and slow down a second.

    For the moment I'm going to revert the changelog release date and manifest bump as we're not tagging and releasing to crates.io today and that's going to be a source of confusion. Maybe tomorrow, maybe in a couple weeks (I'm traveling for the next week and half so it's an awkward moment here), but no releases today.

    I suggest in the future a new issue be opened to propose a release and a signoff from at least one previous releaser should happen before it goes forward.

  23. tobocop2 commented on Aug 6, 2026

    @tobocop2
    Collaborator

    On the substance, I read the changes differently.

    Of the ~25 changes, four kill denial-of-service bugs reachable from tiny inputs, four kill crashes on malformed fonts, nine fix silently wrong output including blank letters in common converted fonts and total outline loss on legal fonts and three are additive features the community asked for years ago. Two of the five API breaks are inseparable from the fixes they ship with, and all five are named in the changelog, which is why the bump is 0.26.0 and not a patch.

    Most of these fixes sat open for months with no response. Merging them is the job we were given access to do.

    If something specific still looks wrong after you've worked through the changes, point at it, but "seems unnecessary" before that isn't constructive and also offensive.

    I am the one that contributed a meaningful fix to this library recently so your "seems unnecessary" comment personally triggered me because you made that claim without reviewing the change sets that were merged:

    Also the same standard in both directions. You reverted the changes without a PR. Reverts go through PRs too.

  24. alerque commented on Aug 6, 2026

    @alerque
    Collaborator

    On the substance, I read the changes differently.

    You might be right on the substance of changes. I specifically said I had not made it through all of them yet. It's been less than 24 hours since the topic of maintenance status was brought up. I replied within hours with an initial thought and a question — then before the question was even answered I've been hit with 50+ notifications, more than that in merged commits, and a totally different project direction on something I was the de-facto maintainer for.

    Of the ~25 changes, four kill denial-of-service bugs reachable from tiny inputs, four kill crashes on malformed fonts, nine fix silently wrong output including blank letters in common converted fonts and total outline loss on legal fonts and three are additive features the community asked for years ago. Two of the five API breaks are inseparable from the fixes they ship with, and all five are named in the changelog, which is why the bump is 0.26.0 and not a patch.

    I did see they were called out as breaking in the changelog (which happened after I noted there were breaking things being merged) and that's great. It might even be true that the issues couldn't have been fixed without a breaking change. But that doesn't justify moving so fast that there isn't even a discussion to that effect with the previous releaser!

    If something specific still looks wrong after you've worked through the changes, point at it, but "seems unnecessary" before that isn't constructive and also offensive.

    I will, but I think you're reading too much into that. It does seem unnecessary to bump the MSRV 25 versions to patch a denial of service attach vector. Again I'll have to work through more details. I expect your are right that some of the changes are required as part of the fixes, but having skimmed through everything I do still think it "seems" like many more changes were made than required and there was zero discussion about what should land in a release.

    I am the one that contributed a meaningful fix to this library recently so your "seems unnecessary" comment personally triggered me because you made that claim without reviewing the change sets that were merged:

    Please understand that no personal attack was intended, and I think if you zoom out a little it should be evident you don't need to be personally triggered. Your PR is 4 days old. Yes there was older stuff around here that hadn't gotten reviewed including several things that slipped through the cracks and some more than I thought had been addressed by the people with the specific issues migrating away anyway. I'm not saying I was on top of everything over here. But given I wasn't replying specifically about your commits and just about the overall activity summary and that I clearly wasn't saying the fixes and meaningful work was unnecessary, only possible some of the breaking bits, I don't think there is any reason to be offended.

    Also the same standard in both directions. You reverted the changes without a PR. Reverts go through PRs too.

    Please carefully re-read what I suggested. It is not a double standard. I had not recommended all changes go through PRs (yet). I said the decision to publish a new release tag should get a sign-off from a previous releaser — that's a fair bit different from 'reverting an erroneous date in a changelog about a release that didn't happen needing to go through a PR'.

  25. khaledhosny commented on Aug 6, 2026

    @khaledhosny

    I don't feel comfortable with us (harfbuzz developers) rubber-stamping a release with changes we have not thoroughly reviewed. Since we lack people who have knowledge and time to review these changes, it would not be a responsible thing to make such a release.

    We already did the responsible thing and declared this crate as unmaintained. People who continue to use it are on their own. Handing over maintenance to someone we don't know would not be responsible.

    My suggestion is to revert all recent changes and archive the repository. Any one is free to fork it and pursue people to use their fork.

  26. alerque commented on Aug 6, 2026

    @alerque
    Collaborator

    I don't feel comfortable with us (harfbuzz developers) rubber-stamping a release with changes we have not thoroughly reviewed. Since we lack people who have knowledge and time to review these changes, it would not be a responsible thing to make such a release.

    I agree we shouldn't rubber stamp anything, hence why I objected just now.

    It might be the case that I don't have time to keep up with review if PRs are going to come 50 a day. That remains to be seen and I'm traveling this week, so it might not be until later next week I can hope to get my head around the current batch of changes.

    Handing over maintenance to someone we don't know would not be responsible.

    Agreed.

    My suggestion is to revert all recent changes and archive the repository. Any one is free to fork it and pursue people to use their fork.

    I've had that suggested to me just now (by 2 parties) as well, but I'm not sure we need yet if we need to do that. I'd like to read through the batch of things just proposed for a release and see if either:

    • I object entirely or can't understand something.
    • I can sign off on a release.
    • I run out of time.

    I think it's possible some security fixes can be cherry picked and released in good conscience, and a more conservative approach can taken to some other changes (like the 2024 Edition bump) that might not be necessary to push on the large number of unsuspecting legacy code bases depending on this.

  27. RazrFalcon commented on Aug 7, 2026

    @RazrFalcon
    Collaborator

    My suggestion would be to reorient the library back to stb_truetype.h and a simpler FreeType/fontations alternative. For people who care only about glyph outlines and basic font metric. There is definitely a use case for this. fontations is pretty heavy dependency in comparison.

    To do so we can easily drop all the tables under opentype-layout and apple-layout build features. Maybe even glyph-names. They were needed only for rustybuzz anyways. We might want to leave GPOS Pair Adjustment to mimic basic kerning, like stb_truetype.h, but that's it.

    We can also drop C-API support. This would reduce benchmarks complexity as well.

    This way we can drastically reduce the maintenance scope.
    And as for new issues/PRs we can make a policy of only accepting bug fixes. So full maintenance mode. After all, the library is pretty much feature complete.

    As for recent commits. I will review them this weekend.
    And I do agree that pushing to crates.io via github actions is too much. It should be done manually for many-many reasons.

  28. RazrFalcon commented on Aug 7, 2026

    @RazrFalcon
    Collaborator

    My suggestion is to revert all recent changes and archive the repository. Any one is free to fork it and pursue people to use their fork.

    According to crates.io, there are 291 project depending on this library and it has 100M downloads. I doubt it would be an easy cut.
    Simply keeping it afloat would be more than enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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