[dump-emoji] Formatting
This commit is contained in:
parent
e9d798dc12
commit
00e94ce24e
|
@ -45,7 +45,8 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
static void cbdt_callback (const uint8_t* data, unsigned int length,
|
static void
|
||||||
|
cbdt_callback (const uint8_t* data, unsigned int length,
|
||||||
unsigned int group, unsigned int gid)
|
unsigned int group, unsigned int gid)
|
||||||
{
|
{
|
||||||
char output_path[255];
|
char output_path[255];
|
||||||
|
@ -55,7 +56,8 @@ static void cbdt_callback (const uint8_t* data, unsigned int length,
|
||||||
fclose (f);
|
fclose (f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sbix_callback (const uint8_t* data, unsigned int length,
|
static void
|
||||||
|
sbix_callback (const uint8_t* data, unsigned int length,
|
||||||
unsigned int group, unsigned int gid)
|
unsigned int group, unsigned int gid)
|
||||||
{
|
{
|
||||||
char output_path[255];
|
char output_path[255];
|
||||||
|
@ -65,7 +67,8 @@ static void sbix_callback (const uint8_t* data, unsigned int length,
|
||||||
fclose (f);
|
fclose (f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void svg_callback (const uint8_t* data, unsigned int length,
|
static void
|
||||||
|
svg_callback (const uint8_t* data, unsigned int length,
|
||||||
unsigned int start_glyph, unsigned int end_glyph)
|
unsigned int start_glyph, unsigned int end_glyph)
|
||||||
{
|
{
|
||||||
char output_path[255];
|
char output_path[255];
|
||||||
|
@ -83,7 +86,8 @@ static void svg_callback (const uint8_t* data, unsigned int length,
|
||||||
fclose (f);
|
fclose (f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void colr_cpal_rendering (hb_face_t *face, cairo_font_face_t *cairo_face)
|
static void
|
||||||
|
colr_cpal_rendering (hb_face_t *face, cairo_font_face_t *cairo_face)
|
||||||
{
|
{
|
||||||
unsigned int upem = hb_face_get_upem (face);
|
unsigned int upem = hb_face_get_upem (face);
|
||||||
|
|
||||||
|
@ -176,7 +180,8 @@ static void colr_cpal_rendering (hb_face_t *face, cairo_font_face_t *cairo_face)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void dump_glyphs (cairo_font_face_t *cairo_face, unsigned int upem,
|
static void
|
||||||
|
dump_glyphs (cairo_font_face_t *cairo_face, unsigned int upem,
|
||||||
unsigned int num_glyphs)
|
unsigned int num_glyphs)
|
||||||
{
|
{
|
||||||
// Dump every glyph available on the font
|
// Dump every glyph available on the font
|
||||||
|
@ -222,7 +227,8 @@ static void dump_glyphs (cairo_font_face_t *cairo_face, unsigned int upem,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int main (int argc, char **argv)
|
int
|
||||||
|
main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
if (argc != 2) {
|
if (argc != 2) {
|
||||||
fprintf (stderr, "usage: %s font-file.ttf\n"
|
fprintf (stderr, "usage: %s font-file.ttf\n"
|
||||||
|
|
Loading…
Reference in New Issue