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

Support for remote fonts #874

Merged
merged 12 commits into from
Aug 8, 2016
Merged

Support for remote fonts #874

merged 12 commits into from
Aug 8, 2016

Conversation

karimnaaji
Copy link
Member

@@ -257,6 +257,11 @@ void Map::resize(int _newWidth, int _newHeight) {

bool Map::update(float _dt) {

// Wait until font resources are fully loaded
if (impl->scene->fontContext()->resourceLoad > 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can do something similar for any uri resource from the scene.
"Wait until texture resources are loaded".

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe make sense to do this in render` call for texture resources, since these are not required for "tile building" which happens in the update loop.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes there's a slight difference between remote texture resource and remote font resource:

  • remote texture resource doesn't lock tile building and will render the black texture until being fetched
  • remote font resource would lock tile building and thus rendering

I guess there's also some upcoming work to go in #814 for that concern.

Copy link
Member

@tallytalwar tallytalwar Jul 29, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, my comments were in reference to #814 only.

@tallytalwar
Copy link
Member

This looks good to me.

@tallytalwar tallytalwar merged commit 883885e into master Aug 8, 2016
@tallytalwar tallytalwar deleted the scene-fonts branch August 8, 2016 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants