[docs] More

This commit is contained in:
Behdad Esfahbod 2018-10-27 04:40:43 -07:00
parent 5dd86aa33b
commit 04981ee05d
7 changed files with 73 additions and 0 deletions

View File

@ -35,6 +35,16 @@
#include "hb-aat-layout.hh"
#include <math.h>
/**
* SECTION:hb-coretext
* @title: hb-coretext
* @short_description: CoreText integration
* @include: hb-coretext.h
*
* Functions for using HarfBuzz with the CoreText fonts.
**/
/* https://developer.apple.com/documentation/coretext/1508745-ctfontcreatewithgraphicsfont */
#define HB_CORETEXT_DEFAULT_FONT_SIZE 12.f

View File

@ -40,6 +40,17 @@
#include FT_TRUETYPE_TABLES_H
/**
* SECTION:hb-ft
* @title: hb-ft
* @short_description: FreeType integration
* @include: hb-ft.h
*
* Functions for using HarfBuzz with the FreeType library to provide face and
* font data.
**/
/* TODO:
*
* In general, this file does a fine job of what it's supposed to do.

View File

@ -33,6 +33,16 @@
#include "hb-machinery.hh"
/**
* SECTION:hb-glib
* @title: hb-glib
* @short_description: GLib integration
* @include: hb-glib.h
*
* Functions for using HarfBuzz with the GLib library to provide Unicode data.
**/
#if !GLIB_CHECK_VERSION(2,29,14)
static const hb_script_t
glib_script_to_script[] =

View File

@ -26,6 +26,18 @@
#include "hb.hh"
/**
* SECTION:hb-gobject
* @title: hb-gobject
* @short_description: GObject integration
* @include: hb-gobject.h
*
* Functions for using HarfBuzz with the GObject library to provide
* type data.
**/
/* g++ didn't like older gtype.h gcc-only code path. */
#include <glib.h>
#if !GLIB_CHECK_VERSION(2,29,16)

View File

@ -36,6 +36,16 @@
#include "hb-ot-layout.h"
/**
* SECTION:hb-graphite2
* @title: hb-graphite2
* @short_description: Graphite2 integration
* @include: hb-graphite2.h
*
* Functions for using HarfBuzz with the Graphite2 fonts.
**/
HB_SHAPER_DATA_ENSURE_DEFINE(graphite2, face)
HB_SHAPER_DATA_ENSURE_DEFINE(graphite2, font)

View File

@ -40,6 +40,16 @@
#include <unicode/uversion.h>
/**
* SECTION:hb-icu
* @title: hb-icu
* @short_description: ICU integration
* @include: hb-icu.h
*
* Functions for using HarfBuzz with the ICU library to provide Unicode data.
**/
hb_script_t
hb_icu_script_to_script (UScriptCode script)
{

View File

@ -39,6 +39,16 @@
#include "hb-ot-layout.h"
/**
* SECTION:hb-uniscribe
* @title: hb-uniscribe
* @short_description: Windows integration
* @include: hb-uniscribe.h
*
* Functions for using HarfBuzz with the Windows fonts.
**/
static inline uint16_t hb_uint16_swap (const uint16_t v)
{ return (v >> 8) | (v << 8); }
static inline uint32_t hb_uint32_swap (const uint32_t v)