diff options
Diffstat (limited to 'gm/textblobmixedsizes.cpp')
-rw-r--r-- | gm/textblobmixedsizes.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gm/textblobmixedsizes.cpp b/gm/textblobmixedsizes.cpp index 330d33f62c..86ab0ac8fb 100644 --- a/gm/textblobmixedsizes.cpp +++ b/gm/textblobmixedsizes.cpp @@ -73,6 +73,13 @@ protected: sk_tool_utils::add_to_text_blob(&builder, text, paint, 0, yOffset); + // Zero size. + paint.measureText(text, strlen(text), &bounds); + yOffset += bounds.height(); + paint.setTextSize(0); + + sk_tool_utils::add_to_text_blob(&builder, text, paint, 0, yOffset); + // build fBlob.reset(builder.build()); } |