21#include <widgets/gp_widgets.h>
134 gp_widget *bearing_x_widget;
135 gp_widget *bearing_y_widget;
152 gp_widget *redo_button;
160 gp_widget *lint_warnings;
Compiles a gfxprim font face from an in-memory gpf font.
The in-memory font model.
gpf_variant_id
Font face variant.
@ GPF_VARIANTS
Number of font variants.
void gpf_gui_sync_block(unsigned int block)
Makes the block selector follow the table.
void gpf_gui_pixel_set(int col, int height, int set)
Sets or clears a pixel of the glyph being edited.
int gpf_gui_modified(uint32_t code)
Whether the glyph has changed since the font was written.
void gpf_gui_redraw(void)
Repaints everything that shows the font.
void gpf_gui_select_keep(uint32_t code)
Selects a glyph without moving the table to it.
unsigned int gpf_gui_accented(uint32_t *codes, unsigned int max)
The accented letters that follow the glyph being edited.
void gpf_gui_edit_begin(void)
Starts an edit, one undo entry.
void gpf_gui_set_variant(enum gpf_variant_id id)
Switches the variant being edited.
struct gpf_glyph * gpf_gui_edit_code(uint32_t code)
The glyph entry to edit, for any glyph.
const struct gpf_ucode_block * gpf_gui_block(void)
The block being browsed.
void gpf_gui_move_variant(int offset)
Moves the current variant in the variant ordering.
void gpf_gui_set_block(unsigned int block)
Selects a block and turns the table to its first page.
struct gpf_glyph * gpf_gui_edit_glyph(void)
The glyph entry to edit in the current variant.
void gpf_gui_set_dirty(int dirty)
Marks the font as changed or as written.
void gpf_gui_select(uint32_t code)
Selects a glyph and turns the table to it.
gp_pixel gpf_gui_back_color(gp_widget *self)
The color a widget is drawn on.
void gpf_gui_shift(int dx, int dy)
Moves the ink of the glyph being edited.
void gpf_gui_invalidate(void)
Throws the compiled faces away.
void gpf_pixmap_resize(gp_widget_event *ev)
Allocates the backing pixmap on a resize.
void gpf_gui_edit_commit(void)
Commits the edit started by gpf_gui_edit_begin() and repaints.
const gp_font_face * gpf_gui_face(enum gpf_variant_id id)
The resolved variant compiled into a gfxprim face.
void gpf_gui_create_glyph(uint32_t code)
Creates a glyph the font has not got.
void gpf_gui_edited(void)
The font changed.
void gpf_gui_set_canvas_zoom(unsigned int zoom)
Sets the canvas zoom and the spinner that shows it.
const struct gpf_ucode_block * gpf_gui_blocks(void)
The block list, built on demand.
The glyph variant lattice.
The glyph selected last in a block, to go back to when the block is switched to again.
uint32_t min
The block, by its first codepoint: indices move on a rebuild.
uint32_t code
The glyph selected, the table one or one picked from the accented letters strip, which may be out of ...
uint32_t table
The glyph selected in its table.
int dx
Accent offset, positive right and up, compose only.
uint32_t code
Unicode code point.
unsigned int zoom
The pixel multiplier the table glyphs are drawn with.
unsigned int block
The index of the block being browsed.
gp_widget * advance_widget
The glyph metrics, editable.
int paint_val
The value the stroke paints.
gp_widget * undo_button
Enabled only when the journal has something to take back.
gp_widget * strip
The variant strip, see preview.h.
gp_widget * browser
The glyph table, see browser.h.
unsigned int deps_off
The first cell of the accented letters strip, which scrolls.
struct gpf_block_sel * block_sels
The glyph selected last in each block, see gpf_gui_select().
gp_widget * deps
The accented letters strip, see preview.h.
gp_widget * save_button
Enabled only when there is something to save.
gp_widget * canvas
The glyph canvas, see canvas.h.
struct gpf_glyph clipboard
The glyph copied last, the ink and the metrics.
gp_htable * uids
The widget uids of the layout.
gp_font_face * faces[GPF_VARIANTS]
The compiled faces, built lazily, one per variant.
uint32_t deps_anchor
The letter or the mark the strip lists, so that the offset resets.
char * save_path
Where a font imported from a BDF is saved, once it has been asked.
gp_widget * family_button
The same, for the font properties.
int in_stroke
A mouse stroke is in progress.
gp_widget * preview_text
The line the user types to see it in the preview.
gp_widget * canvas_zoom_widget
The canvas zoom spinner.
int drag_col
The column the drag is at.
const char * path
The path the font was opened from.
gp_widget * block_start
The block's first codepoint, in hex, editable.
gp_widget * blocks
The block selector.
gp_widget * preview
The sample text, see preview.h.
int cur_col
The column of the pixel the keyboard edits.
unsigned int canvas_zoom
The same for the glyph on the canvas, 0 until it is fitted.
enum gpf_variant_id variant
The variant being edited.
int drag
A metric being dragged instead, see canvas.c.
int rule_underline
Which of the three rules the preview draws over its text.
gp_widget * export_button
Enabled only when there is a font to export.
int dirty
The font has changed since it was last written.
gp_widget * status
The status line, what the selected glyph resolves to.
unsigned int browser_page
The page the browser is at; it pages rather than scrolls.
struct gpf_font * font
The font being edited, NULL when there is none.
gp_widget * paste_button
Enabled once there is something to paste.
gp_widget * family_label
The family name and size.
gp_widget * lint_errors
And how much it says about the whole font, next to its button.
int clipboard_full
Something was copied, a space copies no ink.
int cur_height
The height of the pixel the keyboard edits.
uint32_t code
The selected glyph.
struct gpf_undo * undo
The journal.
struct gpf_ucode_block * block_list
The block list, see gpf_gui_blocks().
int update
Copy the edits of a letter into its accented forms.
gp_widget * lint_label
What the lint says about the glyph being edited.
int browser_follow
Turn to the page with the selection on the next draw.
A unicode block description.
The BMP part of unicode block table and the blocks of a font.