11-- ----------------------------------------------------------------------------
22-- GtkAda - Ada95 binding for Gtk+/Gnome --
33-- --
4- -- Copyright (C) 2010-2018 , AdaCore --
4+ -- Copyright (C) 2010-2025 , AdaCore --
55-- --
66-- This library is free software; you can redistribute it and/or modify it --
77-- under terms of the GNU General Public License as published by the Free --
@@ -26,6 +26,28 @@ with Glib.Object; use Glib.Object;
2626
2727package body Pango.Cairo is
2828
29+ -- -------------------------
30+ -- Set_Default_Font_Type --
31+ -- -------------------------
32+
33+ procedure Set_Default_Font_Type
34+ (Font_Type : Standard.Cairo.Cairo_Font_Type)
35+ is
36+ function pango_cairo_font_map_new_for_font_type
37+ (fonttype : Standard.Cairo.Cairo_Font_Type) return System.Address with
38+ Import, Convention => C,
39+ Link_Name => " pango_cairo_font_map_new_for_font_type" ;
40+
41+ procedure pango_cairo_font_map_set_default
42+ (fontmap : System.Address) with
43+ Import, Convention => C,
44+ Link_Name => " pango_cairo_font_map_set_default" ;
45+
46+ begin
47+ pango_cairo_font_map_set_default
48+ (pango_cairo_font_map_new_for_font_type (Font_Type));
49+ end Set_Default_Font_Type ;
50+
2951 -- ---------------
3052 -- Show_Layout --
3153 -- ---------------
0 commit comments