Skip to content
Discussion options

You must be logged in to vote

My first idea was to use something like p > * { border-bottom: 1px solid gray }, but it won't match text direct child of <p>.

An other idea would be to hack your vertical patch so koreader frontend would get all text boxes from the current page, and draw these lines like it does with underlined highlight.

But may be a no-code idea (keeping your own idea with text-decoration) would be to hack your font (as you are already using a hacked rotated font) so to tweak the font underline metrics. Our code do use underline_position and underline_thickness exposed by our font library: https://freetype.org/freetype2/docs/tutorial/step2.html. I have no idea how these are expressed in the font ie. in …

Replies: 6 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@poire-z
Comment options

Comment options

You must be logged in to vote
1 reply
@Inc0n
Comment options

Answer selected by Inc0n
Comment options

You must be logged in to vote
1 reply
@Inc0n
Comment options

Comment options

You must be logged in to vote
1 reply
@Inc0n
Comment options

Comment options

You must be logged in to vote
2 replies
@Inc0n
Comment options

@poire-z
Comment options

Comment options

You must be logged in to vote
1 reply
@Inc0n
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants