|
|
|
@ -275,9 +275,12 @@ struct TypesetBookImpl::Typesetter : BookTypesetter
|
|
|
|
|
if (i->match (fontName, fontColour, fontColour, fontColour, 0))
|
|
|
|
|
return &*i;
|
|
|
|
|
|
|
|
|
|
StyleImpl & style = *mBook->mStyles.insert (mBook->mStyles.end (), StyleImpl ());
|
|
|
|
|
MyGUI::IFont* font = MyGUI::FontManager::getInstance().getByName(fontName);
|
|
|
|
|
if (!font)
|
|
|
|
|
throw std::runtime_error(std::string("can't find font ") + fontName);
|
|
|
|
|
|
|
|
|
|
style.mFont = MyGUI::FontManager::getInstance().getByName(fontName);
|
|
|
|
|
StyleImpl & style = *mBook->mStyles.insert (mBook->mStyles.end (), StyleImpl ());
|
|
|
|
|
style.mFont = font;
|
|
|
|
|
style.mHotColour = fontColour;
|
|
|
|
|
style.mActiveColour = fontColour;
|
|
|
|
|
style.mNormalColour = fontColour;
|
|
|
|
|