geometer / FBReader

Official FBReader C++ project repository
http://www.fbreader.org/
540 stars 169 forks source link

Implement support for small-caps in CSS #163

Open snowwlex opened 12 years ago

snowwlex commented 12 years ago

from: http://old.fbreader.org/mantis/view.php?id=246

CSS appears to be unimplemented for font weight (bold), variant (small caps) and style (italic). The attached EPUB document, which validates with the current version of epubcheck, fails to display the specified attributes using any of these three methods:

(1) Specifying the style with a specific tag's style attribute.

(2) Setting a CSS rule for a particular class, and specifying that class on the tag.

(3) Overriding the default style on an element (e.g., abbr or em) and using that element.

None of these methods appear to work in FBReader; they all render either in plain text, or (if I try to overload the em element) with their default style.

As "CSS support" has been announced, I'm not sure whether or not I should file this under bugs or not; if this functionality isn't something that's supposed to be present in the current crop of limited CSS support, then it should probably be reclassified as a feature request. (The source seems to indicate that bold and italic weights and variants are supported, which is why

This is an example of an ebook, available in EPUB format via automated conversion, which makes extensive use of CSS-based formatting. http://www.gutenberg.org/etext/23042

attached file: http://old.fbreader.org/mantis/file_download.php?file_id=62&type=bug

snowwlex commented 12 years ago

Bold and italic are supported at current moment