Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.

Conversation

@vince4
Copy link

@vince4 vince4 commented Jul 11, 2018

Inspired from readium-js-viewer, this pull request add a spinner to the ViewerSettingsDialog to choose the font face.
4 choices are available :

  • Default
  • Open Dyslexic
  • Open Sans
  • Noto Serif

@vince4
Copy link
Author

vince4 commented Jul 12, 2018

Font selection in the settings popup

screenshot_font_select

Moby Dick with OpenDyslexic font

screenshot_font_open_dyslexic

<script src="builds/single-bundle/readium-shared-js_all.js" type="text/javascript"></script>

<script src="epubReadingSystem.js" type="text/javascript"></script>
<script src="font-faces/fonts.js" type="text/javascript"></script>
Copy link
Member

Choose a reason for hiding this comment

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

Is the font-faces/fonts.js file missing from this PR?

Copy link
Member

Choose a reason for hiding this comment

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

if (mime.equals("application/xhtml+xml")) {
mime = "text/html";
}

Copy link
Member

Choose a reason for hiding this comment

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

Ah! Tabulations vs. space characters! :)

Copy link
Author

Choose a reason for hiding this comment

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

My apologies, I chose the wrong option on Android Studio

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants