Lines Matching refs:Error
56 Error TextFace::setCharSize(signed long char_size, unsigned int dpi) { in setCharSize()
57 if (!face_) return Error::NotInitialized; in setCharSize()
59 if (error) return Error::CharSizeNotSet; in setCharSize()
60 return Error::OK; in setCharSize()
63 Error TextFace::setCharSizeInPix(pxs size) { in setCharSizeInPix()
64 if (!face_) return Error::NotInitialized; in setCharSizeInPix()
66 return Error::CharSizeNotSet; in setCharSizeInPix()
68 return Error::OK; in setCharSizeInPix()
76 Error TextFace::loadGlyph(GlyphIndex index) { in loadGlyph()
77 if (!face_) return Error::NotInitialized; in loadGlyph()
79 return Error::GlyphNotLoaded; in loadGlyph()
81 return Error::OK; in loadGlyph()
84 Error TextFace::renderGlyph() { in renderGlyph()
85 if (!face_) return Error::NotInitialized; in renderGlyph()
87 return Error::GlyphNotRendered; in renderGlyph()
89 return Error::OK; in renderGlyph()
118 std::tuple<Error, TextContext> TextContext::create() { in create()
119 std::tuple<Error, TextContext> result; in create()
121 rc = Error::NotInitialized; in create()
125 rc = Error::OK; in create()
130 std::tuple<Error, Box<pxs>, UTF8Range<const char*>>
133 std::tuple<Error, Box<pxs>, UTF8Range<const char*>> result; in findLongestWordSequence()
166 error = Error::GlyphNotLoaded; in findLongestWordSequence()
170 if (error != Error::OK) return result; in findLongestWordSequence()
177 error = Error::BBoxComputation; in findLongestWordSequence()
209 error = Error::OK; in findLongestWordSequence()
213 Error drawText(TextFace* face, const UTF8Range<const char*>& text, const PixelDrawer& drawPixel, in drawText()
215 Error error; in drawText()
221 if (error == Error::OK) error = face->renderGlyph(); in drawText()
222 if (error == Error::OK) error = face->drawGlyph(pen, drawPixel); in drawText()
223 if (error != Error::OK) return error; in drawText()
227 return Error::OK; in drawText()