> For the complete documentation index, see [llms.txt](https://mwm5.twelite.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mwm5.twelite.info/1.0-2/references/untitled/twefont/queryfont.md).

# queryFont()

[`createFont???()`](/1.0-2/references/untitled/twefont/createfont.md) によりフォント生成したクラスオブジェクトを参照します。

## 関数定義

```cpp
const FontDef& queryFont(uint8_t id)
```

idにはフォント生成時に指定したフォントIDを指定します。

戻り値は [`FontDef&`](/1.0-2/references/untitled/twefont/fontdef.md) で、ライブラリ内のフォント管理配列内に格納されたオブジェクトへの参照です。

idに0を指定すると、フォントID=0のデフォルトフォントを戻します。存在しないIDを指定した場合も、どうようにデフォルトフォントを戻します。`FontDef`オブジェクトがデフォルトフォントかどうかはメソッド`.is_default()`により判定できます。
