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

ADD font face selection #145

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

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

@@ -10,6 +10,7 @@
<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.

// reader.html
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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants