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

Font Size in Monocle #222

Open
priti123 opened this issue Aug 29, 2013 · 1 comment
Open

Font Size in Monocle #222

priti123 opened this issue Aug 29, 2013 · 1 comment

Comments

@priti123
Copy link

I am able to change the font size only for any one chapter in monocle. If i applied the font magnifier for another chapter its not reflecting the changes. Please help.

@joloco
Copy link

joloco commented Apr 6, 2014

A late answer I know, but I've just figured this out myself.

Are you loading content as DOM Objects? Because if so, the monocle:componentmodify event never fires and then the part of Monocle which listens for this to keep the font size the same never runs.

My solution was to convert my XML DOM Object into a string using
obj.html = (new XMLSerializer()).serializeToString(xml_object);

Monocle then treats it as an HTML string and therefore the monocle:componentmodify event fires, and the font size stays the same between chapters.

There are a couple of other small things which have changed now I've used this method (a blank page after my front cover, for example) but then coding is so often like pushing wallpaper-bubbles down – another two pop up somewhere else!

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

2 participants