Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
hb-style.h File Reference
#include "hb.h"

Go to the source code of this file.

Enumerations

enum  hb_style_tag_t {
  HB_STYLE_TAG_ITALIC = HB_TAG ('i','t','a','l') , HB_STYLE_TAG_OPTICAL_SIZE = HB_TAG ('o','p','s','z') , HB_STYLE_TAG_SLANT_ANGLE = HB_TAG ('s','l','n','t') , HB_STYLE_TAG_SLANT_RATIO = HB_TAG ('S','l','n','t') ,
  HB_STYLE_TAG_WIDTH = HB_TAG ('w','d','t','h') , HB_STYLE_TAG_WEIGHT = HB_TAG ('w','g','h','t') , _HB_STYLE_TAG_MAX_VALUE = HB_TAG_MAX_SIGNED
}
 

Functions

HB_EXTERN float hb_style_get_value (hb_font_t *font, hb_style_tag_t style_tag)
 

Enumeration Type Documentation

◆ hb_style_tag_t

hb_style_tag_t: @HB_STYLE_TAG_ITALIC: Used to vary between non-italic and italic. A value of 0 can be interpreted as "Roman" (non-italic); a value of 1 can be interpreted as (fully) italic. @HB_STYLE_TAG_OPTICAL_SIZE: Used to vary design to suit different text sizes. Non-zero. Values can be interpreted as text size, in points. @HB_STYLE_TAG_SLANT_ANGLE: Used to vary between upright and slanted text. Values must be greater than -90 and less than +90. Values can be interpreted as the angle, in counter-clockwise degrees, of oblique slant from whatever the designer considers to be upright for that font design. Typical right-leaning Italic fonts have a negative slant angle (typically around -12) @HB_STYLE_TAG_SLANT_RATIO: same as @HB_STYLE_TAG_SLANT_ANGLE expression as ratio. Typical right-leaning Italic fonts have a positive slant ratio (typically around 0.2) @HB_STYLE_TAG_WIDTH: Used to vary width of text from narrower to wider. Non-zero. Values can be interpreted as a percentage of whatever the font designer considers “normal width” for that font design. @HB_STYLE_TAG_WEIGHT: Used to vary stroke thicknesses or other design details to give variation from lighter to blacker. Values can be interpreted in direct comparison to values for usWeightClass in the OS/2 table, or the CSS font-weight property.

Defined by OpenType Design-Variation Axis Tag Registry.

Since: 3.0.0

Enumerator
HB_STYLE_TAG_ITALIC 
HB_STYLE_TAG_OPTICAL_SIZE 
HB_STYLE_TAG_SLANT_ANGLE 
HB_STYLE_TAG_SLANT_RATIO 
HB_STYLE_TAG_WIDTH 
HB_STYLE_TAG_WEIGHT 
_HB_STYLE_TAG_MAX_VALUE 

Definition at line 62 of file hb-style.h.

63{
64 HB_STYLE_TAG_ITALIC = HB_TAG ('i','t','a','l'),
65 HB_STYLE_TAG_OPTICAL_SIZE = HB_TAG ('o','p','s','z'),
66 HB_STYLE_TAG_SLANT_ANGLE = HB_TAG ('s','l','n','t'),
67 HB_STYLE_TAG_SLANT_RATIO = HB_TAG ('S','l','n','t'),
68 HB_STYLE_TAG_WIDTH = HB_TAG ('w','d','t','h'),
69 HB_STYLE_TAG_WEIGHT = HB_TAG ('w','g','h','t'),
70
71 /*< private >*/
#define HB_TAG(c1, c2, c3, c4)
Definition hb-common.h:176
#define HB_TAG_MAX_SIGNED
Definition hb-common.h:210
hb_style_tag_t
Definition hb-style.h:63
@ HB_STYLE_TAG_WEIGHT
Definition hb-style.h:69
@ HB_STYLE_TAG_SLANT_RATIO
Definition hb-style.h:67
@ HB_STYLE_TAG_SLANT_ANGLE
Definition hb-style.h:66
@ HB_STYLE_TAG_OPTICAL_SIZE
Definition hb-style.h:65
@ _HB_STYLE_TAG_MAX_VALUE
Definition hb-style.h:72
@ HB_STYLE_TAG_ITALIC
Definition hb-style.h:64
@ HB_STYLE_TAG_WIDTH
Definition hb-style.h:68

Function Documentation

◆ hb_style_get_value()

HB_EXTERN float hb_style_get_value ( hb_font_t * font,
hb_style_tag_t style_tag )