---
UID: NN:dwrite_3.IDWriteFontCollection2
title: IDWriteFontCollection2
description: This interface encapsulates a set of fonts, such as the set of fonts installed on the system, or the set of fonts in a particular directory. The font collection API can be used to discover what font families and fonts are available, and to obtain some metadata about the fonts.
tech.root: DirectWrite
ms.date: 09/12/2019
ms.keywords: IDWriteFontCollection2, IDWriteFontCollection2 interface [Direct Write], IDWriteFontCollection2 interface [Direct Write],described, directwrite.idwritefontcollection2, dwrite_3/IDWriteFontCollection2
f1_keywords:
- IDWriteFontCollection2
dev_langs:
- c++
targetos: Windows
req.assembly: 
req.construct-type: iface
req.ddi-compliance: 
req.header: dwrite_3.h
req.idl: 
req.include-header: 
req.lib: Dwrite.lib
req.max-support: 
req.namespace: 
req.redist: 
req.target-min-winverclnt: 
req.target-min-winversvr: 
req.target-type: Windows
req.unicode-ansi: 
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- Dwrite.lib
- Dwrite.dll
api_name:
- IDWriteFontCollection2
---

## -description

This interface encapsulates a set of fonts, such as the set of fonts installed on the system, or the set of fonts in a particular directory. The font collection API can be used to discover what font families and fonts are available, and to obtain some metadata about the fonts. **IDWriteFontCollection2** adds new facilities, including support for [IDWriteFontSet1](/windows/win32/api/dwrite_3/nn-dwrite_3-idwritefontset1).

This interface extends [IDWriteFontCollection1](/windows/win32/api/dwrite_3/nn-dwrite_3-idwritefontcollection1).

## -see-also

[IDWriteFontCollection1](/windows/win32/api/dwrite_3/nn-dwrite_3-idwritefontcollection1)
[IDWriteFontSet1](/windows/win32/api/dwrite_3/nn-dwrite_3-idwritefontset1)
