Diffstat (limited to 'noncore/apps/opie-reader/FontControl.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/FontControl.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/noncore/apps/opie-reader/FontControl.cpp b/noncore/apps/opie-reader/FontControl.cpp index cfa8534..d082898 100644 --- a/noncore/apps/opie-reader/FontControl.cpp +++ b/noncore/apps/opie-reader/FontControl.cpp | |||
@@ -1,10 +1,19 @@ | |||
1 | #include <qfontdatabase.h> | ||
2 | #include "opie.h" | ||
3 | #include "useqpe.h" | ||
1 | #include "FontControl.h" | 4 | #include "FontControl.h" |
2 | 5 | ||
3 | int FontControl::gzoom() | 6 | int FontControl::gzoom() |
4 | { | 7 | { |
8 | if (m_fixgraphics) | ||
9 | { | ||
10 | return 100; | ||
11 | } | ||
12 | else | ||
13 | { | ||
5 | int ret; | 14 | int ret; |
6 | if (m_size == g_size) | 15 | if (m_size == g_size) |
7 | { | 16 | { |
8 | ret = m_fontsizes[m_size]*m_basesize; | 17 | ret = m_fontsizes[m_size]*m_basesize; |
9 | } | 18 | } |
10 | else if (g_size < 0) | 19 | else if (g_size < 0) |
@@ -18,12 +27,13 @@ int FontControl::gzoom() | |||
18 | int f = g_size - m_maxsize + 1; | 27 | int f = g_size - m_maxsize + 1; |
19 | ret = (m_fontsizes[m_maxsize-1]*m_basesize) << (f/2); | 28 | ret = (m_fontsizes[m_maxsize-1]*m_basesize) << (f/2); |
20 | if (f%2) ret = (3*ret/2); | 29 | if (f%2) ret = (3*ret/2); |
21 | } | 30 | } |
22 | return ret; | 31 | return ret; |
23 | } | 32 | } |
33 | } | ||
24 | 34 | ||
25 | bool FontControl::ChangeFont(QString& n, int tgt) | 35 | bool FontControl::ChangeFont(QString& n, int tgt) |
26 | { | 36 | { |
27 | QValueList<int>::Iterator it; | 37 | QValueList<int>::Iterator it; |
28 | QFontDatabase fdb; | 38 | QFontDatabase fdb; |
29 | QValueList<int> sizes = fdb.pointSizes(n); | 39 | QValueList<int> sizes = fdb.pointSizes(n); |