- singleLock s(refcntlck);
-
- if (!refcnt--)
- delete this;
-}
-
-eTextPara *eTextPara::grab()
-{
- singleLock s(refcntlck);
-
- refcnt++;
- return this;
-}
-
-void eTextPara::setFont(const gFont &font)
-{
- if (refcnt)
- eFatal("mod. after lock");
- Font *fnt=fontRenderClass::getInstance()->getFont(font.family.c_str(), font.pointSize);
+ ePtr<Font> fnt, replacement;
+ fontRenderClass::getInstance()->getFont(fnt, font->family.c_str(), font->pointSize);