This is the KOReader CREngine fork. It cross-pollinates with the official CoolReader repository at https://github.com/buggins/coolreader, in case you were looking for that one.
72
stars
45
forks
source link
CSS/Fonts: add support for font-family to font name mapping #490
so these are matched (namespaces are ignored when matching selectors):
<math foo="bar-baz">
<m:math m:foo="bar-baz">
isImage(): more checks for <object> as it can have inner content
getFontFileNameAndFaceIndex(): returns if font has math support
Check for math support at font registration time.
getFontFileNameAndFaceIndex(): returns if font has emojis
CSS/Fonts: add support for font-family to font name mapping
Allow frontends to provided a list of font to use with each of the generic font-family names.
Also let font-family: math/emoji/fangsong be supported. Have the font set for "font-family: math" font be used with MathML <math>.
CSS parsing: accept (and ignore) namesspaces
Properly parse (instead of dropping/skipping):
so these are matched (namespaces are ignored when matching selectors):
isImage()
: more checks for<object>
as it can have inner contentgetFontFileNameAndFaceIndex()
: returns if font has math supportCheck for math support at font registration time.
getFontFileNameAndFaceIndex()
: returns if font has emojisCSS/Fonts: add support for
font-family
to font name mappingAllow frontends to provided a list of font to use with each of the generic font-family names. Also let
font-family: math/emoji/fangsong
be supported. Have the font set for "font-family: math
" font be used with MathML<math>
.This will allow implementing support for font-family in KOReader, see https://github.com/koreader/koreader/issues/7426#issuecomment-1258335839 .
This change is