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:
parent
59639078ea
commit
be841282b4
8 changed files with 63 additions and 25 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue