OSDN Git Service

use CSS to set font size.
authorikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Sun, 26 Oct 2003 14:02:57 +0000 (14:02 +0000)
committerikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Sun, 26 Oct 2003 14:02:57 +0000 (14:02 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@511 56b19765-1e22-0410-a548-a0f45d66c51a

ChangeLog
kita/src/part/kitathreadview.cpp

index 684c58a..7289e94 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-10-26  Hideki Ikemoto  <ikemo@users.sourceforge.jp>
+
+       * use CSS to set font size.
+
 2003-10-16  Hideki Ikemoto  <ikemo@users.sourceforge.jp>
 
        * version 0.61 released.
index 8327946..ea9805a 100644 (file)
@@ -66,7 +66,7 @@ KitaThreadView::KitaThreadView(QWidget *parent, const char *name)
   QHBoxLayout* aLayout = new QHBoxLayout(threadFrame);
   aLayout->addWidget(m_threadPart->view());
 
-  m_threadPart->setZoomFactor(120); // XXX
+//  m_threadPart->setZoomFactor(120); // XXX
   {
     SearchButton->setPixmap( SmallIcon("find") );
     HighLightButton->setPixmap( SmallIcon("idea") );
@@ -494,8 +494,12 @@ KURL KitaThreadView::filterReadCGI(const KURL& url)
 
 void KitaThreadView::setFont( const QFont& font )
 {
-  m_threadPart->setStandardFont(font.family());
+//  m_threadPart->setStandardFont(font.family());
   subjectLabel->setFont(font);
+
+  DOM::CSSStyleDeclaration style = m_threadPart->htmlDocument().body().style();
+  style.setProperty( "font", font.family(), "" );
+  style.setProperty( "font-size", QString("%1pt").arg( font.pointSize() ), "" );
 }
 
 void KitaThreadView::slotPostStarted( KIO::Job*, const Kita::PostInfo& info)