<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ks_c_5601-1987">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Hi,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0">
Maybe someone is trying to make a compilation of this simple codes<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 ContentPasted1">
For me, it signals an error even though I have all the dependencies installed, we are talking about MSYS2<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 ContentPasted1">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 ContentPasted1">
```</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 ContentPasted1 ContentPasted2">
C:/msys64/mingw64/include/cairo/cairo-ft.h:46:10: fatal error: ft2build.h: No such file or directory
<div class="ContentPasted2">   46 | #include <ft2build.h></div>
<div class="ContentPasted2">        |                  ^~~~~~~~~~~~</div>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 ContentPasted1">
```</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 ContentPasted1">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 ContentPasted1 ContentPasted3">
free-type.c<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 ContentPasted1 ContentPasted3">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 ContentPasted1 ContentPasted3">
```</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 ContentPasted1 ContentPasted3">
<pre class="code highlight ContentPasted4" lang="c"><span class="line" lang="c"><span class="c1 ContentPasted4">// free-type.c</span></span>
<span class="line ContentPasted4" lang="c"><span class="cp ContentPasted4">#include</span> <span class="cpf ContentPasted4"><stdio.h></span></span>
<span class="line ContentPasted4" lang="c"><span class="cp ContentPasted4">#include</span> <span class="cpf ContentPasted4"><stdlib.h></span></span>
<span class="line ContentPasted4" lang="c"><span class="cp ContentPasted4">#include</span> <span class="cpf ContentPasted4"><cairo/cairo.h></span></span>
<span class="line ContentPasted4" lang="c"><span class="cp ContentPasted4">#include</span> <span class="cpf ContentPasted4"><cairo/cairo-ft.h></span></span>
<span class="line" lang="c"><span class="c1 ContentPasted4">//#include <cairo.h></span></span>
<span class="line" lang="c"><span class="c1 ContentPasted4">//#include <cairo-ft.h></span></span>
<span class="line" lang="c"></span>
<span class="line ContentPasted4" lang="c"><span class="cp ContentPasted4">#include</span> <span class="cpf ContentPasted4"><freetype2/ft2build.h></span></span>
<span class="line" lang="c"><span class="c1 ContentPasted4">//#include <ft2build.h></span></span>
<span class="line" lang="c"></span>
<span class="line" lang="c"><span class="cp ContentPasted4">#include FT_SFNT_NAMES_H</span></span>
<span class="line" lang="c"><span class="cp ContentPasted4">#include FT_FREETYPE_H</span></span>
<span class="line" lang="c"><span class="cp ContentPasted4">#include FT_GLYPH_H</span></span>
<span class="line" lang="c"><span class="cp ContentPasted4">#include FT_OUTLINE_H</span></span>
<span class="line" lang="c"><span class="cp ContentPasted4">#include FT_BBOX_H</span></span>
<span class="line" lang="c"><span class="cp ContentPasted4">#include FT_TYPE1_TABLES_H</span></span>
<span class="line" lang="c"></span>
<span class="line ContentPasted4" lang="c"><span class="kt ContentPasted4">int</span> <span class="nf ContentPasted4">main</span><span class="p ContentPasted4">()</span></span>
<span class="line" lang="c"><span class="p ContentPasted4">{</span></span>
<span class="line ContentPasted4" lang="c">    <span class="n ContentPasted4">FT_Library</span> <span class="n ContentPasted4">value</span><span class="p ContentPasted4">;</span></span>
<span class="line ContentPasted4" lang="c">    <span class="n ContentPasted4">FT_Error</span> <span class="n ContentPasted4">status</span><span class="p ContentPasted4">;</span></span>
<span class="line ContentPasted4" lang="c">    <span class="n ContentPasted4">FT_Face</span> <span class="n ContentPasted4">face</span><span class="p ContentPasted4">;</span></span>
<span class="line" lang="c"></span>
<span class="line ContentPasted4" lang="c">    <span class="n ContentPasted4">cairo_t</span> <span class="o ContentPasted4">*</span><span class="n ContentPasted4">c</span><span class="p ContentPasted4">;</span></span>
<span class="line ContentPasted4" lang="c">    <span class="n ContentPasted4">cairo_surface_t</span> <span class="o ContentPasted4">*</span><span class="n ContentPasted4">cs</span><span class="p ContentPasted4">;</span></span>
<span class="line ContentPasted4" lang="c">    <span class="n ContentPasted4">cairo_font_face_t</span> <span class="o ContentPasted4">*</span> <span class="n ContentPasted4">ct</span><span class="p ContentPasted4">;</span></span>
<span class="line ContentPasted4" lang="c">    <span class="kt ContentPasted4">int</span> <span class="n ContentPasted4">size</span> <span class="o ContentPasted4">=</span> <span class="mi ContentPasted4">200</span><span class="p ContentPasted4">;</span></span>
<span class="line" lang="c"></span>
<span class="line ContentPasted4" lang="c">    <span class="n ContentPasted4">cs</span> <span class="o ContentPasted4">=</span> <span class="n ContentPasted4">cairo_image_surface_create</span> <span class="p ContentPasted4">(</span><span class="n ContentPasted4">CAIRO_FORMAT_ARGB32</span><span class="p ContentPasted4">,</span> <span class="n ContentPasted4">size</span><span class="p ContentPasted4">,</span> <span class="n ContentPasted4">size</span><span class="p ContentPasted4">);</span></span>
<span class="line ContentPasted4" lang="c">    <span class="n ContentPasted4">c</span> <span class="o ContentPasted4">=</span> <span class="n ContentPasted4">cairo_create</span> <span class="p ContentPasted4">(</span><span class="n ContentPasted4">cs</span><span class="p ContentPasted4">);</span></span>
<span class="line" lang="c"></span>
<span class="line ContentPasted4" lang="c">    <span class="k ContentPasted4">const</span> <span class="kt ContentPasted4">char</span> <span class="o ContentPasted4">*</span> <span class="n ContentPasted4">filename</span> <span class="o ContentPasted4">=</span>     <span class="s ContentPasted4">"/usr/local/share/fonts/Droid/DroidSansFallbackFull.ttf"</span><span class="p ContentPasted4">;</span></span>
<span class="line" lang="c"></span>
<span class="line ContentPasted4" lang="c">    <span class="n ContentPasted4">status</span> <span class="o ContentPasted4">=</span> <span class="n ContentPasted4">FT_Init_FreeType</span> <span class="p ContentPasted4">(</span><span class="o ContentPasted4">&</span> <span class="n ContentPasted4">value</span><span class="p ContentPasted4">);</span></span>
<span class="line ContentPasted4" lang="c">    <span class="k ContentPasted4">if</span> <span class="p ContentPasted4">(</span><span class="n ContentPasted4">status</span> <span class="o ContentPasted4">!=</span> <span class="mi ContentPasted4">0</span><span class="p ContentPasted4">)</span> <span class="p ContentPasted4">{</span></span>
<span class="line ContentPasted4" lang="c">   <span class="n ContentPasted4">fprintf</span> <span class="p ContentPasted4">(</span><span class="n ContentPasted4">stderr</span><span class="p ContentPasted4">,</span> <span class="s ContentPasted4">"Error %d opening library.</span><span class="se ContentPasted4">\n</span><span class="s ContentPasted4">"</span><span class="p ContentPasted4">,</span> <span class="n ContentPasted4">status</span><span class="p ContentPasted4">);</span></span>
<span class="line ContentPasted4" lang="c">   <span class="n ContentPasted4">exit</span> <span class="p ContentPasted4">(</span><span class="n ContentPasted4">EXIT_FAILURE</span><span class="p ContentPasted4">);</span></span>
<span class="line ContentPasted4" lang="c">    <span class="p ContentPasted4">}</span></span>
<span class="line ContentPasted4" lang="c">    <span class="n ContentPasted4">status</span> <span class="o ContentPasted4">=</span> <span class="n ContentPasted4">FT_New_Face</span> <span class="p ContentPasted4">(</span><span class="n ContentPasted4">value</span><span class="p ContentPasted4">,</span> <span class="n ContentPasted4">filename</span><span class="p ContentPasted4">,</span> <span class="mi ContentPasted4">0</span><span class="p ContentPasted4">,</span> <span class="o ContentPasted4">&</span> <span class="n ContentPasted4">face</span><span class="p ContentPasted4">);</span></span>
<span class="line ContentPasted4" lang="c">    <span class="k ContentPasted4">if</span> <span class="p ContentPasted4">(</span><span class="n ContentPasted4">status</span> <span class="o ContentPasted4">!=</span> <span class="mi ContentPasted4">0</span><span class="p ContentPasted4">)</span> <span class="p ContentPasted4">{</span></span>
<span class="line ContentPasted4" lang="c">   <span class="n ContentPasted4">fprintf</span> <span class="p ContentPasted4">(</span><span class="n ContentPasted4">stderr</span><span class="p ContentPasted4">,</span> <span class="s ContentPasted4">"Error %d opening %s.</span><span class="se ContentPasted4">\n</span><span class="s ContentPasted4">"</span><span class="p ContentPasted4">,</span> <span class="n ContentPasted4">status</span><span class="p ContentPasted4">,</span> <span class="n ContentPasted4">filename</span><span class="p ContentPasted4">);</span></span>
<span class="line ContentPasted4" lang="c">   <span class="n ContentPasted4">exit</span> <span class="p ContentPasted4">(</span><span class="n ContentPasted4">EXIT_FAILURE</span><span class="p ContentPasted4">);</span></span>
<span class="line ContentPasted4" lang="c">    <span class="p ContentPasted4">}</span></span>
<span class="line ContentPasted4" lang="c">    <span class="n ContentPasted4">ct</span> <span class="o ContentPasted4">=</span> <span class="n ContentPasted4">cairo_ft_font_face_create_for_ft_face</span> <span class="p ContentPasted4">(</span><span class="n ContentPasted4">face</span><span class="p ContentPasted4">,</span> <span class="mi ContentPasted4">0</span><span class="p ContentPasted4">);</span></span>
<span class="line ContentPasted4" lang="c">    <span class="n ContentPasted4">cairo_set_font_face</span> <span class="p ContentPasted4">(</span><span class="n ContentPasted4">c</span><span class="p ContentPasted4">,</span> <span class="n ContentPasted4">ct</span><span class="p ContentPasted4">);</span></span>
<span class="line ContentPasted4" lang="c">    <span class="n ContentPasted4">cairo_set_font_size</span> <span class="p ContentPasted4">(</span><span class="n ContentPasted4">c</span><span class="p ContentPasted4">,</span> <span class="n ContentPasted4">size</span><span class="o ContentPasted4">/</span><span class="mi ContentPasted4">3</span><span class="p ContentPasted4">);</span></span>
<span class="line ContentPasted4" lang="c">    <span class="n ContentPasted4">cairo_set_source_rgb</span> <span class="p ContentPasted4">(</span><span class="n ContentPasted4">c</span><span class="p ContentPasted4">,</span> <span class="mi ContentPasted4">0</span><span class="p ContentPasted4">,</span> <span class="mi ContentPasted4">0</span><span class="p ContentPasted4">,</span> <span class="mi ContentPasted4">0</span><span class="p ContentPasted4">);</span></span>
<span class="line ContentPasted4" lang="c">    <span class="n ContentPasted4">cairo_move_to</span> <span class="p ContentPasted4">(</span><span class="n ContentPasted4">c</span><span class="p ContentPasted4">,</span> <span class="n ContentPasted4">size</span><span class="o ContentPasted4">/</span><span class="mi ContentPasted4">6</span><span class="p ContentPasted4">,</span> <span class="n ContentPasted4">size</span><span class="o ContentPasted4">/</span><span class="mi ContentPasted4">3</span><span class="p ContentPasted4">);</span></span>
<span class="line ContentPasted4" lang="c">    <span class="n ContentPasted4">cairo_show_text</span> <span class="p ContentPasted4">(</span><span class="n ContentPasted4">c</span><span class="p ContentPasted4">,</span> <span class="s ContentPasted4">"ª¢ª¤"</span><span class="p ContentPasted4">);</span></span>
<span class="line ContentPasted4" lang="c">    <span class="n ContentPasted4">cairo_set_source_rgb</span> <span class="p ContentPasted4">(</span><span class="n ContentPasted4">c</span><span class="p ContentPasted4">,</span> <span class="mi ContentPasted4">0</span><span class="p ContentPasted4">.</span><span class="mi ContentPasted4">5</span><span class="p ContentPasted4">,</span> <span class="mi ContentPasted4">0</span><span class="p ContentPasted4">.</span><span class="mi ContentPasted4">5</span><span class="p ContentPasted4">,</span> <span class="mi ContentPasted4">0</span><span class="p ContentPasted4">);</span></span>
<span class="line ContentPasted4" lang="c">    <span class="n ContentPasted4">cairo_move_to</span> <span class="p ContentPasted4">(</span><span class="n ContentPasted4">c</span><span class="p ContentPasted4">,</span> <span class="n ContentPasted4">size</span><span class="o ContentPasted4">/</span><span class="mi ContentPasted4">6</span><span class="p ContentPasted4">,</span> <span class="mi ContentPasted4">5</span><span class="o ContentPasted4">*</span><span class="n ContentPasted4">size</span><span class="o ContentPasted4">/</span><span class="mi ContentPasted4">6</span><span class="p ContentPasted4">);</span></span>
<span class="line ContentPasted4" lang="c">    <span class="n ContentPasted4">cairo_show_text</span> <span class="p ContentPasted4">(</span><span class="n ContentPasted4">c</span><span class="p ContentPasted4">,</span> <span class="s ContentPasted4">"ÑÑÊó"</span><span class="p ContentPasted4">);</span></span>
<span class="line ContentPasted4" lang="c">    <span class="n ContentPasted4">cairo_surface_write_to_png</span> <span class="p ContentPasted4">(</span><span class="n ContentPasted4">cs</span><span class="p ContentPasted4">,</span> <span class="s ContentPasted4">"free-type.png"</span><span class="p ContentPasted4">);</span></span>
<span class="line ContentPasted4" lang="c">    <span class="k ContentPasted4">return</span> <span class="mi ContentPasted4">0</span><span class="p ContentPasted4">;</span></span>
<span class="line" lang="c"><span class="p ContentPasted4">}</span></span>
</pre>
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 ContentPasted1 ContentPasted3">
```</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 ContentPasted1">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 ContentPasted1 ContentPasted5">
Makefile<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 ContentPasted1 ContentPasted5">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 ContentPasted1 ContentPasted5">
```</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 ContentPasted1 ContentPasted5">
<pre class="code highlight ContentPasted6" lang="plaintext"><span class="line ContentPasted6" lang="plaintext">C=free-type.c</span>
<span class="line ContentPasted6" lang="plaintext">CFLAGS = -Wall -g `pkg-config --cflags freetype2 cairo`</span>
<span class="line ContentPasted6" lang="plaintext">LDFLAGS = `pkg-config --libs freetype2 cairo`</span>
<span class="line" lang="plaintext"></span>
<span class="line ContentPasted6" lang="plaintext">all: free-type.png</span>
<span class="line" lang="plaintext"></span>
<span class="line ContentPasted6" lang="plaintext">free-type.png: free-type</span>
<span class="line ContentPasted6" lang="plaintext">   ./free-type</span>
<span class="line" lang="plaintext"></span>
<span class="line ContentPasted6" lang="plaintext">free-type: $(C)</span>
<span class="line ContentPasted6" lang="plaintext">   $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(C)</span>
<span class="line" lang="plaintext"></span>
<span class="line ContentPasted6" lang="plaintext">clean:</span>
<span class="line ContentPasted6" lang="plaintext">   -rm -f free-type free-type.png</span>
</pre>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 ContentPasted1 ContentPasted5">
```</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 ContentPasted1">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 ContentPasted1">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 ContentPasted1">
<span class="x_ContentPasted3 ContentPasted7" style="font-size:12pt;margin:0px">Kind regards,</span><span style="background-color:rgb(255, 255, 255);display:inline !important"></span>
<div class="x_ContentPasted3 ContentPasted7" style="font-size:12pt;margin:0px">-- Rafa©©</div>
<br>
</div>
</body>
</html>