summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/outlines.c1
-rw-r--r--src/outlines.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/outlines.c b/src/outlines.c
index 962042c..14dab36 100644
--- a/src/outlines.c
+++ b/src/outlines.c
@@ -112,6 +112,7 @@ ttf2f_result outlines_write(const char *savein, const char *name,
current_chunk_offset += 42 + strlen(ctx->metrics->name_full) +
strlen(ctx->metrics->name_copyright);
+ /* Word align */
while (current_chunk_offset % 4) {
if (fputc(0x0, output) == EOF) goto error_write;
current_chunk_offset++;
diff --git a/src/outlines.h b/src/outlines.h
index 4b67ea4..03d8a58 100644
--- a/src/outlines.h
+++ b/src/outlines.h
@@ -38,7 +38,7 @@ struct char_data {
char flags;
char x0y0[3];
char xsys[3];
-};
+} __attribute__((packed));
#define CHAR_12BIT_COORDS 0x01
#define CHAR_1BPP 0x02