Skip to content

Move font handling to its own crate #249

Closed

Description

@brson

Fonts are currently dealt with in servo_gfx, but that shouldn't be necessary. To draw servo_gfx only needs a native font handle - it doesn't need to be exposed to the complexity of font libraries and text shaping.

Activity

  1. ghost assigned on Jan 17, 2013
  2. burg commented on Jan 17, 2013

    @burg

    So, all font abstractions would be in their own crate, and gfx has a dependency on it? Or are you proposing separate crates for the font handles, font libraries, and the rest of gfx?

    On Jan 16, 2013, at 22:00 , Brian Anderson wrote:

    Fonts are currently dealt with in servo_gfx, but that shouldn't be necessary. To draw servo_gfx only needs a native font handle - it doesn't need to be exposed to the complexity of font libraries.

    —
    Reply to this email directly or view it on GitHub.

  3. brson commented on Jan 17, 2013

    @brson
    ContributorAuthor

    I do not think servo_gfx should have a dependency on servo_fonts or vice versa. If gfx needs a font abstraction to manage ref counts, etc. then I believe it needs a smaller set of features than the shaping code, so it can have its own font handle type and servo can convert between them. I'm not sure that servo_gfx needs a font handle type since it doesn't need to retain handles, but only use them for the duration of a drawing command.

  4. added a commit that references this issue on Sep 7, 2014
  5. added
    E-more-complex
    I-refactor
    and removed
    E-less-complex
    on Feb 4, 2015
  6. Yoric commented on Aug 6, 2015

    @Yoric
    Contributor

    @brson, are you still working on this? Is this bug still valid?

  7. brson commented on Aug 6, 2015

    @brson
    ContributorAuthor

    I'm not working on it, and whatever I was thinking at the time is certainly superseded by whatever others' are thinking now.

  8. added a commit that references this issue on Mar 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-platform/fontsE-more-complexI-refactor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions