2018-03-11 15:15:28 -05:00
// 11 march 2018
2018-03-11 18:59:11 -05:00
# include "../common/attrstr.h"
2018-03-11 15:15:28 -05:00
2018-03-11 17:12:15 -05:00
// See https://developer.gnome.org/pango/1.30/pango-Cairo-Rendering.html#pango-Cairo-Rendering.description
// For the conversion, see https://developer.gnome.org/pango/1.30/pango-Glyph-Storage.html#pango-units-to-double and https://developer.gnome.org/pango/1.30/pango-Glyph-Storage.html#pango-units-from-double
# define pangoToCairo(pango) (pango_units_to_double(pango))
# define cairoToPango(cairo) (pango_units_from_double(cairo))
2018-03-11 15:15:28 -05:00
// opentype.c
extern GString * uiprivOpenTypeFeaturesToPangoCSSFeaturesString ( const uiOpenTypeFeatures * otf ) ;
2018-03-11 16:36:22 -05:00
2018-03-11 18:32:08 -05:00
// fontmatch.c
extern PangoWeight uiprivWeightToPangoWeight ( uiTextWeight w ) ;
extern PangoStyle uiprivItalicToPangoStyle ( uiTextItalic i ) ;
extern PangoStretch uiprivStretchToPangoStretch ( uiTextStretch s ) ;
extern PangoFontDescription * uiprivFontDescriptorToPangoFontDescription ( const uiFontDescriptor * uidesc ) ;
2018-03-11 18:59:11 -05:00
extern void uiprivFontDescriptorFromPangoFontDescription ( PangoFontDescription * pdesc , uiFontDescriptor * uidesc ) ;
2018-03-11 18:32:08 -05:00
2018-03-11 16:36:22 -05:00
// attrstr.c
2018-03-11 19:23:18 -05:00
extern PangoAttrList * uiprivAttributedStringToPangoAttrList ( uiDrawTextLayoutParams * p ) ;