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

CSS support (in progress)

This commit is contained in:
Nikolay Pultsin 2012-05-08 00:51:25 +01:00
parent 74cb4cf7be
commit 9017ad8ea4
4 changed files with 49 additions and 7 deletions

View file

@ -20,6 +20,7 @@
#include <cstdlib>
#include <ZLStringUtil.h>
#include <ZLLogger.h>
#include "StyleSheetTable.h"
@ -185,6 +186,7 @@ shared_ptr<ZLTextStyleEntry> StyleSheetTable::createControl(const AttributeMap &
const std::vector<std::string> &fontFamily = values(styles, "font-family");
if (!fontFamily.empty() && !fontFamily[0].empty()) {
entry->setFontFamily(fontFamily[0]);
ZLLogger::Instance().println(ZLLogger::DEFAULT_CLASS, "font family: " + fontFamily[0]);
}
const std::vector<std::string> &fontSize = values(styles, "font-size");