Step 5: Find the Locale Name.

Get the font famliy name in the locale you want by using the IDWriteLocalizedStrings::FindLocaleName method. In this case, first the default locale is retrieved and requested. If that does not work, the "en-us" locale is requested. If either of the specified locales are not found, this example simply falls back to index 0, the first available locale.