1. ------------------------------------------------------------------------------ 
  2. --                                                                          -- 
  3. --      Copyright (C) 1998-2000 E. Briot, J. Brobecker and A. Charlet       -- 
  4. --                     Copyright (C) 2000-2014, AdaCore                     -- 
  5. --                                                                          -- 
  6. -- This library is free software;  you can redistribute it and/or modify it -- 
  7. -- under terms of the  GNU General Public License  as published by the Free -- 
  8. -- Software  Foundation;  either version 3,  or (at your  option) any later -- 
  9. -- version. This library is distributed in the hope that it will be useful, -- 
  10. -- but WITHOUT ANY WARRANTY;  without even the implied warranty of MERCHAN- -- 
  11. -- TABILITY or FITNESS FOR A PARTICULAR PURPOSE.                            -- 
  12. --                                                                          -- 
  13. -- As a special exception under Section 7 of GPL version 3, you are granted -- 
  14. -- additional permissions described in the GCC Runtime Library Exception,   -- 
  15. -- version 3.1, as published by the Free Software Foundation.               -- 
  16. --                                                                          -- 
  17. -- You should have received a copy of the GNU General Public License and    -- 
  18. -- a copy of the GCC Runtime Library Exception along with this program;     -- 
  19. -- see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    -- 
  20. -- <http://www.gnu.org/licenses/>.                                          -- 
  21. --                                                                          -- 
  22. ------------------------------------------------------------------------------ 
  23.  
  24. pragma Ada_2005; 
  25.  
  26. pragma Warnings (Off, "*is already use-visible*"); 
  27. with Glib;        use Glib; 
  28. with Glib.Object; use Glib.Object; 
  29. with Pango.Font;  use Pango.Font; 
  30.  
  31. package Pango.Font_Face is 
  32.  
  33.    type Pango_Font_Face_Record is new GObject_Record with null record; 
  34.    type Pango_Font_Face is access all Pango_Font_Face_Record'Class; 
  35.  
  36.    type Pango_Font_Face_Array is array (Natural range <>) of Pango_Font_Face; 
  37.  
  38.    ------------------ 
  39.    -- Constructors -- 
  40.    ------------------ 
  41.  
  42.    function Get_Type return Glib.GType; 
  43.    pragma Import (C, Get_Type, "pango_font_face_get_type"); 
  44.  
  45.    ------------- 
  46.    -- Methods -- 
  47.    ------------- 
  48.  
  49.    function Describe 
  50.       (Self : not null access Pango_Font_Face_Record) 
  51.        return Pango.Font.Pango_Font_Description; 
  52.    --  Returns the family, style, variant, weight and stretch of a 
  53.    --  Pango.Font_Face.Pango_Font_Face. The size field of the resulting font 
  54.    --  description will be unset. 
  55.  
  56.    function Get_Face_Name 
  57.       (Self : not null access Pango_Font_Face_Record) return UTF8_String; 
  58.    --  Gets a name representing the style of this face among the different 
  59.    --  faces in the Pango.Font_Family.Pango_Font_Family for the face. This name 
  60.    --  is unique among all faces in the family and is suitable for displaying 
  61.    --  to users. 
  62.  
  63.    function Is_Synthesized 
  64.       (Self : not null access Pango_Font_Face_Record) return Boolean; 
  65.    --  Returns whether a Pango.Font_Face.Pango_Font_Face is synthesized by the 
  66.    --  underlying font rendering engine from another face, perhaps by shearing, 
  67.    --  emboldening, or lightening it. 
  68.    --  Since: gtk+ 1.18 
  69.  
  70.    function List_Sizes 
  71.       (Self : not null access Pango_Font_Face_Record) return Gint_Array; 
  72.    --  List the available sizes for a font. This is only applicable to bitmap 
  73.    --  fonts. For scalable fonts, stores null at the location pointed to by 
  74.    --  Sizes and 0 at the location pointed to by N_Sizes. The sizes returned 
  75.    --  are in Pango units and are sorted in ascending order. 
  76.    --  Since: gtk+ 1.4 
  77.  
  78. end Pango.Font_Face;