Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

SkTypeface * SkPaint::setTypeface ( SkTypeface typeface  ) 

Set or clear the typeface object.

Pass NULL to clear any previous typeface. As a convenience, the parameter passed is also returned. If a previous typeface exists, its reference count is decremented. If typeface is not NULL, its reference count is incremented.

Parameters:
typeface May be NULL. The new typeface to be installed in the paint
Returns:
typeface

Definition at line 302 of file SkPaint.cpp.

{
    SkRefCnt_SafeAssign(fTypeface, font);
    return font;
}


Generated by  Doxygen 1.6.0   Back to index