*/
typedef struct fz_layout_char
{
- float x, w;
+ float x, advance;
const char *p; /* location in source text of character */
struct fz_layout_char *next;
} fz_layout_char;
typedef struct fz_layout_line
{
- float x, y, h;
+ float x, y, font_size;
const char *p; /* location in source text of start of line */
fz_layout_char *text;
struct fz_layout_line *next;
fz_drop_pool(ctx, block->pool);
}
-void fz_add_layout_line(fz_context *ctx, fz_layout_block *block, float x, float y, float h, const char *p)
+void fz_add_layout_line(fz_context *ctx, fz_layout_block *block, float x, float y, float font_size, const char *p)
{
fz_layout_line *line = fz_pool_alloc(ctx, block->pool, sizeof (fz_layout_line));
line->x = x;
line->y = y;
- line->h = h;
+ line->font_size = font_size;
line->p = p;
line->text = NULL;
line->next = NULL;
block->text_tailp = &line->text;
}
-void fz_add_layout_char(fz_context *ctx, fz_layout_block *block, float x, float w, const char *p)
+void fz_add_layout_char(fz_context *ctx, fz_layout_block *block, float x, float advance, const char *p)
{
fz_layout_char *ch = fz_pool_alloc(ctx, block->pool, sizeof (fz_layout_char));
ch->x = x;
- ch->w = w;
+ ch->advance = advance;
ch->p = p;
ch->next = NULL;
*block->text_tailp = ch;