Home | History | Annotate | Download | only in ports

Lines Matching defs:familyName

101 static void dcfontname_to_skstring(HDC deviceContext, const LOGFONT& lf, SkString* familyName) {
118 tchar_to_skstring(fontName.get(), familyName);
1759 static void logfont_for_name(const char* familyName, LOGFONT* lf) {
1763 size_t str_len = ::MultiByteToWideChar(CP_UTF8, 0, familyName,
1769 ::MultiByteToWideChar(CP_UTF8, 0, familyName, -1,
1775 ::strncpy(lf->lfFaceName, familyName, LF_FACESIZE - 1);
1788 SkString familyName;
1789 dcfontname_to_skstring(deviceContext, fLogFont, &familyName);
1799 desc->setFamilyName(familyName.c_str());
2021 char familyName[BASE64_GUID_ID_LEN];
2022 const int familyNameSize = SK_ARRAY_COUNT(familyName);
2023 if (FAILED(create_unique_font_name(familyName, familyNameSize))) {
2028 SkAutoTUnref<SkData> rewrittenFontData(SkOTUtils::RenameFont(stream, familyName, familyNameSize-1));
2041 logfont_for_name(familyName, &lf);
2319 SkString familyName;
2320 this->getFamilyName(&familyName);
2322 nameIter = new SkOTUtils::LocalizedStrings_SingleName(familyName, language);
2477 SkFontStyleSetGDI(const TCHAR familyName[]) {
2481 _tcscpy_s(lf.lfFaceName, familyName);
2539 virtual void onGetFamilyName(int index, SkString* familyName) SK_OVERRIDE {
2541 tchar_to_skstring(fLogFontArray[index].elfLogFont.lfFaceName, familyName);
2549 virtual SkFontStyleSet* onMatchFamily(const char familyName[]) SK_OVERRIDE {
2550 if (NULL == familyName) {
2551 familyName = ""; // do we need this check???
2554 logfont_for_name(familyName, &lf);
2558 virtual SkTypeface* onMatchFamilyStyle(const char familyName[],
2561 SkAutoTUnref<SkFontStyleSet> sset(this->matchFamily(familyName));
2568 SkString familyName;
2569 ((LogFontTypeface*)familyMember)->getFamilyName(&familyName);
2570 return this->matchFamilyStyle(familyName.c_str(), fontstyle);
2589 virtual SkTypeface* onLegacyCreateTypeface(const char familyName[],
2592 if (NULL == familyName) {
2595 logfont_for_name(familyName, &lf);