Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider making the glyf table just fit the loaded glyphs #730

Open
bstell opened this issue Jun 25, 2015 · 2 comments
Open

Consider making the glyf table just fit the loaded glyphs #730

bstell opened this issue Jun 25, 2015 · 2 comments

Comments

@bstell
Copy link
Contributor

bstell commented Jun 25, 2015

Making the glyf table smaller:

  • saves Javascript memory
  • reduces the Blob URL transfer time
  • requires bulk moves of the glyf data
  • requires re-writing the cmaps
@bstell
Copy link
Contributor Author

bstell commented Aug 11, 2015

A Blob is used for both the SetFont() and idb.put().

Blobs are built from an array of objects. Logically breaking up an ArrrayBuffer could be done using DataView objects for the data before and after the new data. This would eliminate the need to move the bytes in the ArrayBuffer.

@bstell
Copy link
Contributor Author

bstell commented Aug 11, 2015

For subsequent uses the array of items in the blob can be converted to a single ArrayBuffer:
http://langweiligeszeug.tumblr.com/post/15735711576/arraybuffer-blob-binarystring-conversion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant