Index: src/ports/SkFontHost_linux.cpp |
diff --git a/src/ports/SkFontHost_linux.cpp b/src/ports/SkFontHost_linux.cpp |
index 2f962d7d40d35e1cc6854eb2c065859e69a9eaff..c49299c111deaa1505c7a1b14dde3265cad5f433 100644 |
--- a/src/ports/SkFontHost_linux.cpp |
+++ b/src/ports/SkFontHost_linux.cpp |
@@ -326,8 +326,8 @@ private: |
SkString name; |
while (iter.next(&name, false)) { |
- SkString filename(directory); |
- filename.append(name); |
+ SkString filename( |
+ SkOSPath::SkPathJoin(directory.c_str(), name.c_str())); |
bool isFixedPitch; |
SkString realname; |
@@ -377,7 +377,7 @@ private: |
// Try to pick a default font. |
static const char* gDefaultNames[] = { |
- "Arial", "Verdana", "Times New Roman", NULL |
+ "Arial", "Verdana", "Times New Roman", "Droid Sans", NULL |
}; |
for (size_t i = 0; i < SK_ARRAY_COUNT(gDefaultNames); ++i) { |
SkFontStyleSet_Custom* set = this->onMatchFamily(gDefaultNames[i]); |