Skip to content

Avoid closing stream by OpenFontReader.ReadPreview #216

Description

@acaly

When using OpenFontReader to read a font collection, it would be really helpful to keep the stream open such that ReadPreview and Read can be called on the same stream instance. If the stream is seekable, this simplifies the logic a lot, because otherwise we either need to manually make a copy (probably to MemoryStream) or open the file again.

Activity

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