[]
Obtains the font files representing a font face.
public FontFile[] GetFiles()
Type | Description |
---|---|
FontFile[] | An array that stores references to font files representing the font face. This parameter can be NULL if the user wants only the number of files representing the font face. This API increments reference count of the font file references returned according to COM conventions, and the client should release them when finished. |
The IDWriteFontFace::GetFiles method should be called twice. The first time you call GetFilesfontFiles should be NULL. When the method returns, numberOfFiles receives the number of font files that represent the font face. Then, call the method a second time, passing the numberOfFiles value that was output the first call, and a non-null buffer of the correct size to store the FontFile references.
HRESULT IDWriteFontFace::GetFiles([InOut] unsigned int* numberOfFiles,[Out, Buffer, Optional] IDWriteFontFile** fontFiles)
public void GetFiles(ref int numberOfFiles, FontFile[] fontFiles)
Type | Name | Description |
---|---|---|
int | numberOfFiles | |
FontFile[] | fontFiles |