What I am trying to solve is that in spanish poetry when a verse is larger that the box's size, it has to be a break and the next line has to be right aligned with a bracket:
Code:
A short verse.
A very very long
[verse.
I figured out how to make this change. The issue is that when the user changes the font, the calculation has to be done again. I tried to solve this by doing a fixed EPUB, but iBooks and ebook-viewer allow the font increase.
So I was wondering how I can detect that change, I cant catch it with resize listener or inspecting the font size with a timer. So I think it is something related with some sort of scale, but the ways I have found to detect a change in the viewport scale doesnt work either.
The link that you send it seems that have the same issue to detect that kind of change, at least in iBooks and ebook-viewer.