#include <libwapcaplet/libwapcaplet.h>
#include <libcss/errors.h>
#include <libcss/functypes.h>
#include <libcss/properties.h>
#include <libcss/types.h>
Go to the source code of this file.
◆ css_font_face_format
◆ css_font_face_location_type
◆ css_font_face_format
| Enumerator |
|---|
| CSS_FONT_FACE_FORMAT_UNSPECIFIED | |
| CSS_FONT_FACE_FORMAT_WOFF | |
| CSS_FONT_FACE_FORMAT_OPENTYPE | |
| CSS_FONT_FACE_FORMAT_EMBEDDED_OPENTYPE | |
| CSS_FONT_FACE_FORMAT_SVG | |
| CSS_FONT_FACE_FORMAT_UNKNOWN | |
◆ css_font_face_location_type
| Enumerator |
|---|
| CSS_FONT_FACE_LOCATION_TYPE_UNSPECIFIED | |
| CSS_FONT_FACE_LOCATION_TYPE_LOCAL | |
| CSS_FONT_FACE_LOCATION_TYPE_URI | |
◆ css_font_face_count_srcs()
Get the number of potential src locations for a font-face
- Parameters
-
| font_face | The font-face |
| count | Pointer to location to receive result |
- Returns
- CSS_OK on success, CSS_BADPARM on bad parameters.
◆ css_font_face_font_style()
| uint8_t css_font_face_font_style |
( |
const css_font_face * |
font_face | ) |
|
Get the style of font for a font-face.
- Parameters
-
- Returns
- The style, as a css_font_style_e
◆ css_font_face_font_weight()
| uint8_t css_font_face_font_weight |
( |
const css_font_face * |
font_face | ) |
|
Get the weight of font for a font-face.
- Parameters
-
- Returns
- The style, as a css_font_weight_e
◆ css_font_face_get_font_family()
Get a font-face's font-family name
- Parameters
-
| font_face | The font-face |
| result | Pointer to location to receive result |
- Returns
- CSS_OK on success, CSS_BADPARM on bad parameters.
◆ css_font_face_get_src()
Get a specific src location from a font-face
- Parameters
-
| font_face | The font-face |
| index | The index for the wanted src. |
| count | Pointer to location to receive result |
- Returns
- CSS_OK on success, CSS_BADPARM on bad parameters.
◆ css_font_face_src_format()
Get the format of font for a font-face src.
- Parameters
-
- Returns
- The format, if specified
◆ css_font_face_src_get_location()
Get the location for a font-face src.
- Parameters
-
| font_face | The font-face |
| count | Pointer to location to receive result |
- Returns
- CSS_OK on success, CSS_BADPARM on bad parameters.
- Note
- The type of location (local or URL) can be gathered from css_font_face_src_location_type, and the format of font (if specified) from css_font_face_src_format.
◆ css_font_face_src_location_type()
Get the location type for a font-face src.
- Parameters
-
- Returns
- The location type