Diffstat (limited to 'freetype/fontfactoryttf_qws.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | freetype/fontfactoryttf_qws.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/freetype/fontfactoryttf_qws.cpp b/freetype/fontfactoryttf_qws.cpp index 1f082a9..1ed0d2c 100644 --- a/freetype/fontfactoryttf_qws.cpp +++ b/freetype/fontfactoryttf_qws.cpp | |||
@@ -19,7 +19,9 @@ | |||
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | |||
22 | #include "fontfactoryttf_qws.h" | 21 | #include "fontfactoryttf_qws.h" |
23 | 22 | ||
23 | #include <opie2/odebug.h> | ||
24 | using namespace Opie::Core; | ||
25 | |||
24 | #ifdef QT_NO_FREETYPE | 26 | #ifdef QT_NO_FREETYPE |
25 | 27 | ||
@@ -108,5 +110,5 @@ public: | |||
108 | err=FT_Load_Glyph(myface,index,FT_LOAD_DEFAULT); | 110 | err=FT_Load_Glyph(myface,index,FT_LOAD_DEFAULT); |
109 | if(err) | 111 | if(err) |
110 | qFatal("Load glyph error %x",err); | 112 | ofatal << "Load glyph error " << err << "" << oendl; |
111 | 113 | ||
112 | int width=0,height=0,pitch=0,size=0; | 114 | int width=0,height=0,pitch=0,size=0; |
@@ -114,5 +116,5 @@ public: | |||
114 | err=FT_Get_Glyph( myface->glyph, &glyph ); | 116 | err=FT_Get_Glyph( myface->glyph, &glyph ); |
115 | if(err) | 117 | if(err) |
116 | qFatal("Get glyph error %x",err); | 118 | ofatal << "Get glyph error " << err << "" << oendl; |
117 | 119 | ||
118 | FT_BBox bbox; | 120 | FT_BBox bbox; |
@@ -128,5 +130,5 @@ public: | |||
128 | &origin, 1); // destroy original glyph | 130 | &origin, 1); // destroy original glyph |
129 | if(err) | 131 | if(err) |
130 | qWarning("Get bitmap error %d",err); | 132 | owarn << "Get bitmap error " << err << "" << oendl; |
131 | } | 133 | } |
132 | 134 | ||
@@ -181,5 +183,5 @@ private: | |||
181 | if (err) { | 183 | if (err) { |
182 | if (FT_IS_SCALABLE(myface) ) { | 184 | if (FT_IS_SCALABLE(myface) ) { |
183 | qWarning("Set char size error %x for size %d",err,ptsize); | 185 | owarn << "Set char size error " << err << " for size " << ptsize << "" << oendl; |
184 | } else { | 186 | } else { |
185 | int best=-1; | 187 | int best=-1; |
@@ -199,5 +201,5 @@ private: | |||
199 | myface->available_sizes[best].height); | 201 | myface->available_sizes[best].height); |
200 | if ( err ) | 202 | if ( err ) |
201 | qWarning("Set char size error %x for size %d",err,ptsize); | 203 | owarn << "Set char size error " << err << " for size " << ptsize << "" << oendl; |
202 | } | 204 | } |
203 | } | 205 | } |
@@ -210,5 +212,5 @@ QFontFactoryFT::QFontFactoryFT() | |||
210 | err=FT_Init_FreeType(&library); | 212 | err=FT_Init_FreeType(&library); |
211 | if(err) { | 213 | if(err) { |
212 | qFatal("Couldn't initialise Freetype library"); | 214 | ofatal << "Couldn't initialise Freetype library" << oendl; |
213 | } | 215 | } |
214 | } | 216 | } |
@@ -237,5 +239,5 @@ void QFontFactoryFT::load(QDiskFont * qdf) const | |||
237 | err=FT_New_Face(library,qdf->file.ascii(),0,&(f->face)); | 239 | err=FT_New_Face(library,qdf->file.ascii(),0,&(f->face)); |
238 | if(err) { | 240 | if(err) { |
239 | qFatal("Error %d opening face",err); | 241 | ofatal << "Error " << err << " opening face" << oendl; |
240 | } | 242 | } |
241 | qdf->loaded=true; | 243 | qdf->loaded=true; |