1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-04 18:29:23 +02:00

embedded fonts support (in progress)

This commit is contained in:
Nikolay Pultsin 2014-03-30 14:24:49 +03:00
parent 59639078ea
commit be841282b4
8 changed files with 63 additions and 25 deletions

View file

@ -194,11 +194,7 @@ shared_ptr<ZLTextStyleEntry> StyleSheetTable::createControl(const AttributeMap &
const std::string &fontFamily = value(styles, "font-family");
if (!fontFamily.empty()) {
std::vector<std::string> families = StyleSheetUtil::splitCommaSeparatedList(fontFamily);
// TODO: use all families
if (!families.empty()) {
entry->setFontFamily(families[0]);
}
entry->setFontFamilies(StyleSheetUtil::splitCommaSeparatedList(fontFamily));
}
const std::string &fontSize = value(styles, "font-size");