# Freetype2 module unavailable

**URL:** <https://forum.opencv.org/t/freetype2-module-unavailable/15557>\
**Category:** C++\
**Tags:** build, contrib, freetype\
**Created:** [November 17, 2023, 2:23am UTC](https://forum.opencv.org/t/freetype2-module-unavailable/15557 "2023-11-17T02:23:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhouzhi123.8](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/zhouzhi123.8/32/9108_2.png) [@zhouzhi123.8](https://forum.opencv.org/u/zhouzhi123.8)\
**Post date:** [November 17, 2023, 2:23am UTC](https://forum.opencv.org/t/freetype2-module-unavailable/15557/1 "2023-11-17T02:23:31Z")

</div>

I build OpenCV 4.6.0 from source code on Ubuntu 18.04, all extra modules which I need installed successfully except freetype2, How to fix it? thanks

below is my build info

 ![image](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/7/7f3c5c79ff394d9b3ccee9ddc31ba95e827c355a.png)

Should I install any dependence before freetype2 ?

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [November 17, 2023, 8:28am UTC](https://forum.opencv.org/t/freetype2-module-unavailable/15557/2 "2023-11-17T08:28:14Z")

</div>

> [@zhouzhi123.8](#):
>
> Should I install any dependence before freetype2 ?

yes, ofc. …

> <https://github.com/opencv/opencv_contrib/blob/4.x/modules/freetype/README.md>

please also note, that upcoming opencv 5 will have [builtin truetype fonts](https://github.com/opencv/opencv/pull/18760) in imgproc
