Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Add support for excluding ideographic characters from offline downloads #11561

Closed
ChrisLoer opened this issue Mar 29, 2018 · 3 comments
Closed
Assignees
Labels
good first issue Good for newcomers offline

Comments

@ChrisLoer
Copy link
Contributor

I just took a look at a ~200MB offline cache I collected for a narrow area around Beijing. It appeared to have ~24MB of tiles and ~161MB of font data. I suspect a large amount of that font data is CJK ideographs, which I don't need because I'm using the cache with an app that renders ideographs locally. We should add an option to OfflineDownload to exclude requests for glyph ranges that are part of i18n::allowsFixedWidthGlyphGeneration, expose the option in the various users of OfflineDownload (mbgl-offline, MGLOfflineStorage, ...?), and figure out how to document it appropriately.

/cc @kkaefer @tobrun @1ec5

@ChrisLoer ChrisLoer self-assigned this Mar 29, 2018
@mb12
Copy link

mb12 commented Mar 29, 2018

@ChrisLoer Another approach to reduce the download bandwidth would be to download the .ttf file and generate the pbfs locally using node-fontnik. For 'Open Sans' fonts, this can reduce bandwidth by 6x (uncompressed).

@stale
Copy link

stale bot commented Oct 25, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the archived Archived because of inactivity label Oct 25, 2018
@ChrisLoer ChrisLoer added the good first issue Good for newcomers label Oct 25, 2018
@stale stale bot removed the archived Archived because of inactivity label Oct 25, 2018
@ChrisLoer
Copy link
Contributor Author

Implemented in #13607.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers offline
Projects
None yet
Development

No branches or pull requests

2 participants