gpforge
An advanced bitmap font editor
Loading...
Searching...
No Matches
edit.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * Copyright (C) 2026 Cyril Hrubis <metan@ucw.cz>
4 */
16#ifndef GPFORGE_EDIT_H
17#define GPFORGE_EDIT_H
18
19#include "font.h"
20
30int gpf_glyph_pixel_get(const struct gpf_glyph *self, int col, int height);
31
43int gpf_glyph_pixel_set(struct gpf_glyph *self, int col, int height, int set);
44
55void gpf_glyph_shift(struct gpf_glyph *self, int dx, int dy);
56
64void gpf_glyph_flip_h(struct gpf_glyph *self);
65
73void gpf_glyph_flip_v(struct gpf_glyph *self);
74
82void gpf_glyph_clear_ink(struct gpf_glyph *self);
83
84#endif /* GPFORGE_EDIT_H */
void gpf_glyph_shift(struct gpf_glyph *self, int dx, int dy)
Moves the glyph ink.
Definition edit.c:72
void gpf_glyph_flip_v(struct gpf_glyph *self)
Mirrors the ink vertically.
Definition edit.c:99
int gpf_glyph_pixel_get(const struct gpf_glyph *self, int col, int height)
Returns a glyph pixel at a given position.
Definition edit.c:11
void gpf_glyph_flip_h(struct gpf_glyph *self)
Mirrors the ink horizontally.
Definition edit.c:81
int gpf_glyph_pixel_set(struct gpf_glyph *self, int col, int height, int set)
Sets or clears a glyph pixel.
Definition edit.c:22
void gpf_glyph_clear_ink(struct gpf_glyph *self)
Clears the glyph ink.
Definition edit.c:114
The in-memory font model.
A glyph.
Definition font.h:80