<summary>
Create a text format object used for text layout.
</summary>
<param name="fontFamilyName">Name of the font family</param>
<param name="fontCollection">Font collection. NULL indicates the system font collection.</param>
<param name="fontWeight">Font weight</param>
<param name="fontStyle">Font style</param>
<param name="fontStretch">Font stretch</param>
<param name="fontSize">Logical size of the font in DIP units. A DIP ("device-independent pixel") equals 1/96 inch.</param>
<param name="localeName">Locale name</param>
<param name="textFormat">Contains newly created text format object, or NULL in case of failure.</param>
<returns>
Standard HRESULT error code.
</returns>
<summary> Create a text format object used for text layout. </summary> <param name="fontFamilyName">Name of the font family</param> <param name="fontCollection">Font collection. NULL indicates the system font collection.</param> <param name="fontWeight">Font weight</param> <param name="fontStyle">Font style</param> <param name="fontStretch">Font stretch</param> <param name="fontSize">Logical size of the font in DIP units. A DIP ("device-independent pixel") equals 1/96 inch.</param> <param name="localeName">Locale name</param> <param name="textFormat">Contains newly created text format object, or NULL in case of failure.</param> <returns> Standard HRESULT error code. </returns>