How to display coloured emojis on Windows? lazarus / 31-LCL ---------------------------------------------------------------------- Gustavo 'Gus' Carreno · 2021-09-24 01:42 Hey Y'all, I was able to convince a couple of user over at the Discord server Unofficial Free Pascal(https://discord.gg/yQhwhfZS) to compile the attached project and they provided me with a screenshot of what it looks like under Windows 10. I'm also attaching how it looks under Ubuntu 21.04 64b. If we go over to emojipedia.org, they use both UTF8 emojis and images to display their information. When I was testing my project under a Windows Server 2012 VPS, I pointer Google Chrome at it and the UTF8 emojis where coloured. So, what do I have to do to have my app tap into the coloured UTF8 emojis? Is it a matter of font? Or something else like a codepage? I'm lost and a complete ignorant of both how Windows renders UTF8 glyphs and the whole UTF8 thing to be honest, so any hint and/or pointer to some helpful implementation would be very welcomed!! Cheers, Gus PS: I sure wish we could have a BBCode tag to include an image in the text and not only on the attachments... Maybe I'm being spoiled by GitHub's Markdown editor or the Discord client LOL!! ---------------------------------------------------------------------- Jurassic Pork · 2021-09-24 08:08 hello, i don't know if you can use this option in Lazarus : QuoteD2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT In Windows 8.1 and later, text is rendered using color versions of glyphs, if defined by the font. Friendly, J.P ---------------------------------------------------------------------- Gustavo 'Gus' Carreno · 2021-09-25 13:58 Hey J.P., Quote from: Jurassic Pork on September 24, 2021, 10:08:06 ami don't know if you can use this option in Lazarus : QuoteD2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT In Windows 8.1 and later, text is rendered using color versions of glyphs, if defined by the font. Thanks, I'll try and look this up. I hope I can suss this out even without access to a Windows machine Cheer, Gus ---------------------------------------------------------------------- Martin_fr · 2021-09-25 14:15 The "old" API does not support this according to my google searches. So functions like TextOutA / TextOutW (Afaik used by the LCL) will not do the trick. https://stackoverflow.com/questions/46892844/gdi-can-i-use-the-new- windows-10-segoe-ui-emoji-colored-font-with-drawtext The answer seems to lead to this: https://docs.microsoft.com/en- us/windows/win32/directwrite/direct-write-portal ---------------------------------------------------------------------- Gustavo 'Gus' Carreno · 2021-09-25 14:28 Hey Martin, Quote from: Martin_fr on September 25, 2021, 04:15:05 pmThe "old" API does not support this according to my google searches. So functions like TextOutA / TextOutW (Afaik used by the LCL) will not do the trick. That's a bummer Quote from: Martin_fr on September 25, 2021, 04:15:05 pmhttps://stackoverflow.com/questions/46892844/gdi-can-i-use-the-new- windows-10-segoe-ui-emoji-colored-font-with-drawtext The answer seems to lead to this: https://docs.microsoft.com/en- us/windows/win32/directwrite/direct-write-portal This looks quite more complicated than just drop some TLabels on a TFlowPanel... Is there anything in laz-main that I can look at that uses this new approach? And, Martin, THANK you SOOOO very much for doing the leg work, I really appreciate it really I DO!! Well, if all else fails, the place I'm extracting the data for these lists has a *.png file that illustrates an example. So a solid plan B would be to use TImages on the TFlowPanel instead of the current TLabels when it comes to Windows. It's a pity that Windows always has to be de odd one out Cheers, Gus ---------------------------------------------------------------------- Jurassic Pork · 2021-09-27 12:13 hello, on windows, webbrowsers can display colored emojis, so here is two possibilities. 1 -  Generate html code to display the emojis which you want : Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   s:= TStringList.Create;  htmlString := '' +                '' +              '

';   For index := 0 to 79 do    htmlString += '&#' + IntToStr($1F600 + index) + ';';  htmlString += '

';  s.add(htmlString);  s.SaveToFile('D:\temp\emojis.html');  s.Free;                           Attention displayed code is wrong : Quote   '>&#'  ->  '>&#'then two possibilities  : 1 - Display the page in Lazarus with a webbrowser Activex (IE). 2 - Launch chrome with selenium in Lazarus then get all the span elements. Take a screenshot of each element. Put the bitmap in a TimageList. Then Display the imageList in a TListView. see the result in Attachment. Friendly, J.P ---------------------------------------------------------------------- engkin · 2021-09-27 14:25 I think the browser uses FreeType? ---------------------------------------------------------------------- Gustavo 'Gus' Carreno · 2021-09-27 17:04 Hey J.P., Thank you very much for the effort in getting it to work with ActiveX Internet Explorer, it looks FAB!! My main goal is to not have any dependencies on external stuff, including ActiveX or the bloatware of an external Browser Engine. As I've mentioned before, the source I'm extracting from(https://unicode.org/emoji/charts/emoji-list.html) already has the images embedded in base64 PNGs. If I can't solve this with just a font change or messing about with the TextOut(A/W) to use DirectWrite, like @Martin_fr suggested, I'll just include the samples on the data I'm extracting and use the PNGs. Nonetheless, I thank you VERY much for the effort you made Cheers, Gus ---------------------------------------------------------------------- Gustavo 'Gus' Carreno · 2021-09-27 17:08 Hey Engkin, Quote from: engkin on September 27, 2021, 04:25:49 pmI think the browser uses FreeType? I'm a complete noob in terms of Fonts/UTF8 and Graphics in general, so I have a noob question: Isn't FreeType a Font Format, or a list of fonts in an accepted font format that is free and without royalties? If so, how do I make sure I'm selecting a FreeType font on Windows? Does Windows even have ANY FreeType font installed by default? Thanks for the suggestion, but being a noob, it posed more questions than it solved, sorry Engkin Cheers, Gus ---------------------------------------------------------------------- dsiders · 2021-09-27 17:12 Quote from: Gustavo 'Gus' Carreno on September 27, 2021, 07:08:29 pmHey Engkin, Quote from: engkin on September 27, 2021, 04:25:49 pmI think the browser uses FreeType? I'm a complete noob in terms of Fonts/UTF8 and Graphics in general, so I have a noob question: Isn't FreeType a Font Format, or a list of fonts in an accepted font format that is free and without royalties? If so, how do I make sure I'm selecting a FreeType font on Windows? Does Windows even have ANY FreeType font installed by default? Thanks for the suggestion, but being a noob, it posed more questions than it solved, sorry Engkin Cheers, Gus What is FreeType? https://www.freetype.org/freetype2/docs/index.html ---------------------------------------------------------------------- wp · 2021-09-27 17:30 Have a look at the demo in folder examples/lazfreetype. It shows how fonts can be rendered by a Lazarus program bypassing the system font machinery. I had already tried to display an emoji with this program but was not successful since I am an emoji noob and don't know neither emoji codes nor complete fonts which contain emojis. ---------------------------------------------------------------------- winni · 2021-09-27 17:37 Quote from: wp on September 27, 2021, 07:30:36 pm ......nor complete fonts which contain emojis. Hi! Use the Liberation Fonts: Sans/Serif/Mono They contain emojis. Download here: https://github.com/liberationfonts/liberation-fonts Winni ---------------------------------------------------------------------- Gustavo 'Gus' Carreno · 2021-09-27 18:02 Hey dsiders, Quote from: dsiders on September 27, 2021, 07:12:56 pmWhat is FreeType? https://www.freetype.org/freetype2/docs/index.html Thank you very much for the link!! I'll have a read just to pad my knowledge of this matter, which is very lacking I must admit Cheers, Gus ---------------------------------------------------------------------- Gustavo 'Gus' Carreno · 2021-09-27 18:19 Hey WP, Quote from: wp on September 27, 2021, 07:30:36 pmHave a look at the demo in folder examples/lazfreetype. It shows how fonts can be rendered by a Lazarus program bypassing the system font machinery. Thank you SOOOO very much for this!!!! I haven't had a look at the code, I just ran it to see what it can do and my head exploded on the speed of it!!! Now I need to have a look at the code and see if I can make the coloured emojis to come out on a Windows program. If this is the solution, as usual, WP, YOU DA MAN :hugs: Quote from: wp on September 27, 2021, 07:30:36 pmI had already tried to display an emoji with this program but was not successful since I am an emoji noob and don't know neither emoji codes nor complete fonts which contain emojis. Welcome to the club I'm just crawling from the primordial ooze myself, LOL Cheers, Gus ---------------------------------------------------------------------- Gustavo 'Gus' Carreno · 2021-09-27 18:23 Hey Winni, Quote from: winni on September 27, 2021, 07:37:11 pmUse the Liberation Fonts: Sans/Serif/Mono They contain emojis. Download here: https://github.com/liberationfonts/liberation-fonts Thanks mate, I'll have a good look at those!! This then, ofc, gets me into the how-do-I-use-a-font-without- installing-it territory of things. Well, for the regular TextOut on the LCL, cuz if I use the code @WP suggested from the FreeType example, I just need to include the file and some kind of LICENSE file... Nonetheless, thanks for giving me a font file that, for sure, has emojis!! Cheers, Gus ---------------------------------------------------------------------- engkin · 2021-09-27 21:54 Here is the code that I had found long ago on a Japanese website. I made a class of the original code: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i unit uColorEmoji; {$mode objfpc}{$H+} interface uses  Classes, SysUtils, Graphics, freetypehdyn; type   { ]"]>Blockedji }   ]"]>Blockedji=class  protected    FLibrary: PFT_Library;    FError: FT_Error;    FFace: PFT_Face;    procedure DrawFreeTypeBitmap(ACanvas: TCanvas ;AFTBitmap: FT_Bitmap; X, Y: integer);  public    constructor Create(AFontFileName: String);    destructor Destroy; override;    procedure DrawUnicodeCodePoint(ACanvas: TCanvas; ACodePoint: FT_ULong; ALineHeight: integer; AX: integer);  end; //Test//DrawUnicodeCodePoint(Label1.Canvas, $1F61C, 160); implementation { ]"]>Blockedji } constructor ]"]>Blockedji.Create(AFontFileName: String);begin  inherited Create;   InitializeFreetype('freetype.dll');  FError := FT_Init_FreeType(FLibrary);  {if LError <> 0 then    Exit;//}  FT_New_Face(FLibrary, PChar(AFontFileName), 0, FFace);end; destructor ]"]>Blockedji.Destroy;begin  //FT_Done_Face(Face);  ReleaseFreetype;  inherited Destroy;end; procedure ]"]>Blockedji.DrawFreeTypeBitmap(ACanvas: TCanvas ;AFTBitmap: FT_Bitmap; X, Y: integer);type  RGBQUAD = packed record    rgbRed, rgbGreen, rgbBlue, rgbReserved: byte  end;  TRGBQArray = array [0..High(integer) div 4 - 1] of RGBQUAD;  PRGBQArray = ^TRGBQArray;var  LIsColor: boolean;  LIncValue: integer;  LBitmap: TBitmap;  LBytePos: integer;  LPosX: integer;  LPosY: integer;  LScanArray: PRGBQArray;  LColorQuad: RGBQUAD;  LByte: byte;  LBValue: byte;  LGValue: byte;  LRValue: byte;  LAValue: byte;begin  LBitmap := TBitmap.Create;  try    LBitmap.SetSize(AFTBitmap.Width, AFTBitmap.rows);    LBitmap.PixelFormat := pf32bit;    //LBitmap.AlphaFormat := afDefined;     LIncValue := 1;    LIsColor := AFTBitmap.Width = AFTBitmap.pitch div 4;    if LIsColor then      LIncValue := 4;     LBytePos := 0;    for LPosY := 0 to LBitmap.Height - 1 do    begin      LScanArray := LBitmap.ScanLine[LPosY];       for LPosX := 0 to LBitmap.Width - 1 do      begin        if LIsColor then        begin          LRValue := PByte(AFTBitmap.buffer)[LBytePos + 0];          LGValue := PByte(AFTBitmap.buffer)[LBytePos + 1];        LBValue := PByte(AFTBitmap.buffer)[LBytePos + 2];          LAValue := PByte(AFTBitmap.buffer)[LBytePos + 3];        end        else        begin          LByte := pByte(AFTBitmap.buffer)[LBytePos];          if LByte <> $00 then          begin            LRValue := $00;          LGValue := $00;            LBValue := $00;            LAValue := $FF;          end          else          begin            LRValue := $FF;          LGValue := $FF;            LBValue := $FF;            LAValue := $FF;          end;        end;         LColorQuad.rgbRed := LRValue;        LColorQuad.rgbGreen := LGValue;        LColorQuad.rgbBlue := LBValue;        LColorQuad.rgbReserved := LAValue;         LScanArray^[LPosX] := LColorQuad;         Inc(LBytePos, LIncValue);      end;    end;     ACanvas.Draw(X, y, LBitmap);  finally    FreeAndNil(LBitmap);  end;end; procedure ]"]>Blockedji.DrawUnicodeCodePoint(ACanvas: TCanvas; ACodePoint: FT_ULong;  ALineHeight: integer; AX: integer); const  FT_LOAD_COLOR = 1 shl 20;//<--missing from freetypehdyn var  LGlyphIndex: FT_UInt;  LGlyphSlot: PFT_GlyphSlot;  LDrawLeft: integer;  LDrawTop: integer;begin{  ACanvas.Brush.Style := bsClear;  ACanvas.Brush.Color := clSilver;  //ACanvas.FillRect(ACanvas.ClipRect);  //}  FT_Set_Pixel_Sizes(FFace, 0, ALineHeight);   LGlyphIndex := FT_Get_Char_Index(FFace, ACodePoint);  if LGlyphIndex=0 then    exit;   FError := FT_Load_Glyph(FFace, LGlyphIndex, FT_LOAD_COLOR {or FT_LOAD_RENDER});   LGlyphSlot := FFace^.glyph;  FError := FT_Render_Glyph(LGlyphSlot, FT_RENDER_MODE_NORMAL);   LDrawLeft := AX;  LDrawTop := ALineHeight - FFace^.glyph^.bitmap_top;   ACanvas.FillRect(AX,0, AX+10+FFace^.glyph^.bitmap.width,ACanvas.Height);   DrawFreeTypeBitmap(ACanvas, LGlyphSlot^.bitmap, LDrawLeft, LDrawTop);end; end. Test it with a button and a label, like: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.Button1Click(Sender: TObject);var  Emoji: ]"]>Blockedji;  fileName: String;begin  fileName := 'c:\Windows\Fonts\seguiemj.ttf';  //fileName := 'c:\Windows\Fonts\OpenSansEmoji.otf';  //fileName := 'c:\Windows\Fonts\unifont-13.0.06.ttf';  //fileName := 'c:\Windows\Fonts\TwitterColorEmoji-SVGinOT.ttf';//<--- complete list  Emoji := ]"]>Blockedji.Create(fileName);  try    Emoji.DrawUnicodeCodePoint(Label1.Canvas, $1F61C, 160, 10);  finally  Emoji.Free;  end;end; I think I needed it on a system that does not support colored emojis. 1st Edit: You still need a FreeType library, if you don't already have it on your system. 2nd Edit: I just realized freetypehdyn is missing one needed function: FT_Render_Glyph. I modified freetypehdyn to include it. ---------------------------------------------------------------------- wp · 2021-09-27 22:12 That's interesting code, thanks for sharing. However, the compiler (3.2.2, 3.2.0) chokes on FT_Render_Glyph. ---------------------------------------------------------------------- engkin · 2021-09-28 00:33 Sorry, I meant to provide that function as well. Add the attached files to your project. ---------------------------------------------------------------------- Jurassic Pork · 2021-09-28 11:42 hello, strange, it seems that with use of freetypefont (engkin's unit) , the emojis are not the same that the segoe ui emojis ( see attachment 1). And i have some trouble with transparency. I have a new method to display emojis  in lazarus : 1 - get the internet page where you have seen the emojis which you want (ex : https://unicode.org/emoji/charts/emoji-list.html ) with fpthttpclient 2 - parse the html to extract all the lines of the table with emojis (with sax_html) 3 - on each line get the caption of the emoji and the base64 string of the emoji's image. Convert the base64 string to bitmap. put the bitmap in an imagelist. Put the caption in a listview (with imagelist as largeimages). See the result in attachment 2. Friendly, J.P ---------------------------------------------------------------------- PascalDragon · 2021-09-28 11:56 Quote from: Jurassic Pork on September 28, 2021, 01:42:41 pmstrange, it seems that with use of freetypefont (engkin's unit) , the emojis are not the same that the segoe ui emojis ( see attachment 1). That's because there are different styles of Emojis. The Segoe UI emojis are those designed by Microsoft while the ones you loaded from the internet look like the Apple ones. There are many more of course... ---------------------------------------------------------------------- Jurassic Pork · 2021-09-28 12:32 Quote from: PascalDragon on September 28, 2021, 01:56:07 pmThat's because there are different styles of Emojis. The Segoe UI emojis are those designed by Microsoft while the ones you loaded from the internet look like the Apple ones. There are many more of course. but the freetypefont is "linked" to segoe ui emojis font : Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i  fileName := extractfiledir(paramstr(0))+ '\seguiemj.ttf';   Emoji := ]"]>Blockedji.Create(fileName); ---------------------------------------------------------------------- engkin · 2021-09-28 14:08 Quote from: Jurassic Pork on September 28, 2021, 01:42:41 pmstrange, it seems that with use of freetypefont (engkin's unit) , the emojis are not the same that the segoe ui emojis ( see attachment 1). I vaguely remember discovering the browser "cheating" when it comes to displaying emojis. Also,, I think I had another function included in the attached file above to help find an emoji based on its name. ---------------------------------------------------------------------- wp · 2021-09-28 14:10 Quote from: engkin on September 28, 2021, 02:33:49 amAdd the attached files to your project. Engkin, thanks for this nice code. Are you planning to file a feature request to the fpc project so that the missing procedures are added to the "official" libfreetype? BTW, there is also a LazFreeType library (in components/freetype of the Laz installation). I guess your code can be adapted to work with this lib as well? ---------------------------------------------------------------------- Jurassic Pork · 2021-09-28 14:31 wp, have you try the uColorEmoji unit ? i have some trouble with transparency : may be my code is wrong : here is the code : Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i // uses uColorEmoji;var     bmp: TBitmap;    LI: TListItem;    Emoji: ]"]>Blockedji;    fileName: String;   index: Integer;begin   bmp := TBitmap.Create;   bmp.SetSize(32,32);   fileName := extractfiledir(paramstr(0))+ '\seguiemj.ttf';   Emoji := ]"]>Blockedji.Create(fileName);   try      For index:=0 to 79 do       begin          Emoji.DrawUnicodeCodePoint(bmp.Canvas, $1F600 + index, 32, 0); //[EDIT] oops index forgotten          LI := ListView1.Items.Add;          LI.Caption    := 'Emoji' + IntToStr(index);          LI.ImageIndex := index;          ImageList1.Add(bmp,nil);        end;   finally    bmp.Free;    Emoji.Free;  end;     and for the use of EasyLazFreeType Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i // uses fpimage,IntfGraphics, GraphType,  EasyLazFreeType,  LazFreeTypeIntfDrawer; var  charIndex: integer;  lazimg: TLazIntfImage;  FTTFFont: TFreeTypeFont;  drawer: TIntfFreeTypeDrawer;     begin  lazimg := TLazIntfImage.Create(0,0, [riqfRGB]);  lazimg.SetSize(Image1.Width,Image1.Height);  FTTFFont:=TFreeTypeFont.create;  FTTFFont.Hinted:=false;  FTTFFont.Name:= extractfiledir(paramstr(0))+'\seguiemj.ttf';  ShowMessage(inttoStr(FTTFFont.GlyphCount));  FTTFFont.SizeInPoints := 24;  drawer := TIntfFreeTypeDrawer.Create(lazimg);  drawer.FillPixels(TColorToFPColor(clYellow));  charIndex :=  FTTFFont.CharIndex[$1F600]; // not working  drawer.DrawGlyph(2093,FTTFFont,0,30,TColorToFPColor(clBlack)); // force to index 2093  Image1.Picture.Bitmap.LoadFromIntfImage(lazimg); drawer.free;  FTTFFont.Free;  CharIndex return 0 and of course the emoji is black ( DrawGlyph). Friendly, J.P ---------------------------------------------------------------------- wp · 2021-09-28 15:27 Sorry I don't know what to do with these code snippets. Could you upload them in a compilable project? Yes I tried Engkin's uColorEmoji unit, and it works correctly regarding transparency - see attchment ---------------------------------------------------------------------- Jurassic Pork · 2021-09-28 15:39 ok thanks wp i have found the error in my code --> i have put wrong args in the DrawUnicodeCodePoint procedure and wrong ttf . it is for that i have the wrong emojis. With your project it is OK ! in Attachment my project with a better code. ---------------------------------------------------------------------- Jurassic Pork · 2021-09-29 10:48 hello, Quote from: Jurassic Pork on September 28, 2021, 04:31:20 pmand for the use of EasyLazFreeType : Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i // uses fpimage,IntfGraphics, GraphType,  EasyLazFreeType,  LazFreeTypeIntfDrawer; var  charIndex: integer;  lazimg: TLazIntfImage;  FTTFFont: TFreeTypeFont;  drawer: TIntfFreeTypeDrawer;     begin  lazimg := TLazIntfImage.Create(0,0, [riqfRGB]);  lazimg.SetSize(Image1.Width,Image1.Height);  FTTFFont:=TFreeTypeFont.create;  FTTFFont.Hinted:=false;  FTTFFont.Name:= extractfiledir(paramstr(0))+'\seguiemj.ttf';  ShowMessage(inttoStr(FTTFFont.GlyphCount));  FTTFFont.SizeInPoints := 24;  drawer := TIntfFreeTypeDrawer.Create(lazimg);  drawer.FillPixels(TColorToFPColor(clYellow));  charIndex :=  FTTFFont.CharIndex[$1F600]; // not working  drawer.DrawGlyph(11680,FTTFFont,0,30,TColorToFPColor(clBlack)); // force to index 11680  Image1.Picture.Bitmap.LoadFromIntfImage(lazimg);   drawer.free;  FTTFFont.Free;  CharIndex return 0 and of course the emoji is black ( DrawGlyph). Friendly, J.P CharIndex returns 0 because LazFreeType isn't up to date. The file ttcmap.pas contains only 4 formats of cmap (0,2,4,6). In the latest file ttcmap.c of freetype project we have   9 formats (0,2,4,6,8,10,12,13,14). The font segoe ui emojis uses the formats  4,12,14. Friendly, J.P ---------------------------------------------------------------------- PascalDragon · 2021-09-29 11:17 Quote from: Jurassic Pork on September 28, 2021, 02:32:56 pmQuote from: PascalDragon on September 28, 2021, 01:56:07 pmThat's because there are different styles of Emojis. The Segoe UI emojis are those designed by Microsoft while the ones you loaded from the internet look like the Apple ones. There are many more of course. but the freetypefont is "linked" to segoe ui emojis font : Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i  fileName := extractfiledir(paramstr(0))+ '\seguiemj.ttf';   Emoji := ]"]>Blockedji.Create(fileName); And Segoe UI contains the Microsoft Emojis so I don't know why you're confused here? ---------------------------------------------------------------------- engkin · 2021-10-03 06:30 Quote from: wp on September 28, 2021, 04:10:08 pmAre you planning to file a feature request to the fpc project so that the missing procedures are added to the "official" libfreetype? Yes, sure. As soon as I get a chance unless you beat me to it. It needs the static version of these functions to be added as well, a missing constant, and testing it on Windows as least.