wcscmp(arg, L"-nosim")) { cmd.allowedSimulations = DWRITE_FONT_SIMULATIONS_NONE; } else { return false; } } return true; } int __cdecl wmain(int argc, WCHAR** argv) { CmdArgs cmd; if (!ParseCommandLine(argc, argv, cmd)) { std::cerr << "Invalid command. Type TestFont...
{}, DWRITE_FONT_SIMULATIONS allowedSimulations = DWRITE_FONT_SIMULATIONS_BOLD | DWRITE_FONT_SIMULATIONS_OBLIQUE ){ wil::com_ptr<IDWriteFontSet2> fontSet2; THROW_IF_FAILED(factory->GetSystemFontSet(/*includeDownloadableFonts*/false, &fontSet2)); wil::com_ptr<IDWriteFontSet4> fontSet; ...