Commit c372b480 authored by Mike Wey's avatar Mike Wey

Update Pango to 1.43.

parent 814a5514
......@@ -100,7 +100,7 @@ Gdk | 3.22
Glib | 2.60
GObject | 2.60
Gio | 2.60
Pango | 1.42
Pango | 1.43
Atk | 2.32
Gdk-pixbuf | 2.38
Cairo | 1.12.2
......
......@@ -108,6 +108,19 @@ public class PgFontFamily : ObjectG
return pango_font_family_is_monospace(pangoFontFamily) != 0;
}
/**
* A variable font is a font which has axes that can be modified to
* produce different faces.
*
* Returns: %TRUE if the family is variable
*
* Since: 1.44
*/
public bool isVariable()
{
return pango_font_family_is_variable(pangoFontFamily) != 0;
}
/**
* Lists the different font faces that make up @family. The faces
* in a family share a common design, but differ in slant, weight,
......
......@@ -226,7 +226,7 @@ public class PgLayoutIter
return null;
}
return ObjectG.getDObject!(PgLayoutLine)(cast(PangoLayoutLine*) p, true);
return ObjectG.getDObject!(PgLayoutLine)(cast(PangoLayoutLine*) p);
}
/**
......
......@@ -249,6 +249,7 @@ shared static this()
Linker.link(pango_font_family_get_type, "pango_font_family_get_type", LIBRARY_PANGO);
Linker.link(pango_font_family_get_name, "pango_font_family_get_name", LIBRARY_PANGO);
Linker.link(pango_font_family_is_monospace, "pango_font_family_is_monospace", LIBRARY_PANGO);
Linker.link(pango_font_family_is_variable, "pango_font_family_is_variable", LIBRARY_PANGO);
Linker.link(pango_font_family_list_faces, "pango_font_family_list_faces", LIBRARY_PANGO);
// pango.PgFontMap
......@@ -801,6 +802,7 @@ __gshared extern(C)
GType function() c_pango_font_family_get_type;
const(char)* function(PangoFontFamily* family) c_pango_font_family_get_name;
int function(PangoFontFamily* family) c_pango_font_family_is_monospace;
int function(PangoFontFamily* family) c_pango_font_family_is_variable;
void function(PangoFontFamily* family, PangoFontFace*** faces, int* nFaces) c_pango_font_family_list_faces;
// pango.PgFontMap
......@@ -1351,6 +1353,7 @@ alias c_pango_font_face_list_sizes pango_font_face_list_sizes;
alias c_pango_font_family_get_type pango_font_family_get_type;
alias c_pango_font_family_get_name pango_font_family_get_name;
alias c_pango_font_family_is_monospace pango_font_family_is_monospace;
alias c_pango_font_family_is_variable pango_font_family_is_variable;
alias c_pango_font_family_list_faces pango_font_family_list_faces;
// pango.PgFontMap
......
......@@ -196,6 +196,8 @@ public enum PangoAttrType
* type of a Unicode character as specified by the
* <ulink url="http://www.unicode.org/reports/tr9/">Unicode bidirectional algorithm</ulink>.
*
* Deprecated: Use fribidi for this information
*
* Since: 1.22
*/
public enum PangoBidiType
......@@ -323,6 +325,10 @@ public enum PangoCoverageLevel
* enumeration as the writing direction of a block of
* text and are no longer used; See #PangoGravity for how
* vertical text is handled in Pango.
*
* If you are interested in text direction, you should
* really use fribidi directly. PangoDirection is only
* retained because it is used in some public apis.
*/
public enum PangoDirection
{
......@@ -1720,12 +1726,17 @@ struct PangoFontFamilyClass
* Returns: %TRUE if the family is monospace.
*/
extern(C) int function(PangoFontFamily* family) isMonospace;
/**
*
* Params:
* family = a #PangoFontFamily
* Returns: %TRUE if the family is variable
*/
extern(C) int function(PangoFontFamily* family) isVariable;
/** */
extern(C) void function() PangoReserved2;
/** */
extern(C) void function() PangoReserved3;
/** */
extern(C) void function() PangoReserved4;
}
struct PangoFontMap
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment