414 {
416
417
418
419
422 if (attributes) {
424 const char*
name = attributes[i];
425 const char*
value = attributes[i+1];
426 size_t nameLen = strlen(
name);
427 size_t valueLen = strlen(value);
430 if (
MEMEQ(
"elegant", value, valueLen)) {
432 }
else if (
MEMEQ(
"compact", value, valueLen)) {
434 }
437 "Note: Every font file within a family must have identical variants.",
438 value);
439 }
440
441 }
else if (
MEMEQ(
"lang",
name, nameLen)) {
443 bool showWarning = false;
445 showWarning = (currentFamily.
fFonts.
size() > 1);
447 }
else if (currentFamily.
fLanguages[0] != currentLanguage) {
448 showWarning = true;
449 currentFamily.
fLanguages[0] = std::move(currentLanguage);
450 }
451 if (showWarning) {
453 "Note: Every font file within a family must have identical languages.",
454 value);
455 }
456
457 }
else if (
MEMEQ(
"index",
name, nameLen)) {
460 }
461 }
462 }
463 }
464 self->fCurrentFontInfo = &newFileInfo;
465 },
466 nullptr,
467 nullptr,
468 [](
void*
data,
const char*
s,
int len) {
471 }
472};
#define SK_FONTCONFIGPARSER_WARNING(message,...)
void append(const char text[])
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
FontFileInfo * fCurrentFontInfo
skia_private::TArray< SkLanguage, true > fLanguages
skia_private::TArray< FontFileInfo, true > fFonts