---
UID: NF:dwrite_3.IDWriteFontSet.GetFontCount
title: IDWriteFontSet::GetFontCount (dwrite_3.h)
description: Get the number of total fonts in the set.
old-location: directwrite\idwritefontset_getfontcount.htm
tech.root: DirectWrite
ms.assetid: 15231d40-9de2-54e4-f4ad-0f1ef9b35c47
ms.date: 12/05/2018
ms.keywords: GetFontCount, GetFontCount method [Direct Write], GetFontCount method [Direct Write],IDWriteFontSet interface, IDWriteFontSet interface [Direct Write],GetFontCount method, IDWriteFontSet.GetFontCount, IDWriteFontSet::GetFontCount, directwrite.idwritefontset_getfontcount, dwrite_3/IDWriteFontSet::GetFontCount
f1_keywords:
- dwrite_3/IDWriteFontSet.GetFontCount
dev_langs:
- c++
req.header: dwrite_3.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: Windows 10 [desktop apps only]
req.target-min-winversvr: Windows Server 2016 [desktop apps only]
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: 
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
req.lib: Dwrite.lib
req.dll: Dwrite.dll
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- dwrite.dll
api_name:
- IDWriteFontSet.GetFontCount
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# IDWriteFontSet::GetFontCount


## -description


Get the number of total fonts in the set.


## -parameters






## -returns



Type: <b>UINT32</b>

Returns the number of total fonts in the set.




## -see-also




<a href="/windows/win32/api/dwrite_3/nn-dwrite_3-idwritefontset">IDWriteFontSet</a>
 

 

