projects
/
platform
/
upstream
/
kmscon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb1e7a9
)
text: font: add x/y offsets for glyphs
author
David Herrmann
<dh.herrmann@googlemail.com>
Sat, 28 Jul 2012 14:37:22 +0000
(16:37 +0200)
committer
David Herrmann
<dh.herrmann@googlemail.com>
Sat, 28 Jul 2012 14:37:22 +0000
(16:37 +0200)
A single glyph might be bigger/smaller than the other glyphs so allow them
to be positioned. As we are not interested in details like baselines, we
simply use an x/y offset.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/text.h
patch
|
blob
|
history
diff --git
a/src/text.h
b/src/text.h
index
906b897
..
70af5ae
100644
(file)
--- a/
src/text.h
+++ b/
src/text.h
@@
-70,6
+70,8
@@
bool kmscon_font_attr_match(const struct kmscon_font_attr *a1,
struct kmscon_glyph {
unsigned int ascent;
unsigned int descent;
+ unsigned int xoff;
+ unsigned int yoff;
struct uterm_video_buffer buf;
};