Typography icon indicating copy to clipboard operation
Typography copied to clipboard

Avoid closing stream by OpenFontReader.ReadPreview

Open acaly opened this issue 4 years ago • 1 comments

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.

acaly avatar Oct 17 '20 01:10 acaly

Thank you , I will check it again

prepare avatar Oct 21 '20 03:10 prepare