mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-24 06:12:52 -06:00
issues with font metrics in X11
git-svn-id: svn://ultimatepp.org/upp/trunk@6574 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
bd9522418b
commit
ff04f27147
7 changed files with 45 additions and 29 deletions
|
|
@ -81,7 +81,7 @@ struct FontDataSysMaker : LRUCache<FontSysData, Tuple2<Font, int> >::Maker {
|
|||
virtual int Make(FontSysData& object) const { object.Init(font, angle); return 1; }
|
||||
};
|
||||
|
||||
int gtk_antialias = -1;
|
||||
int gtk_antialias = -1; // These are not really used with GTK backed.....
|
||||
int gtk_hinting = -1;
|
||||
String gtk_hintstyle;
|
||||
String gtk_rgba;
|
||||
|
|
@ -100,8 +100,8 @@ void SystemDraw::DrawTextOp(int x, int y, int angle, const wchar *text, Font fon
|
|||
for(int i = 0; i < n; i++) {
|
||||
cairo_glyph_t& g = gs[i];
|
||||
g.index = GetGlyphInfo(font, text[i]).glyphi;
|
||||
g.x = fround(x + cosa * xpos + sina * ascent);
|
||||
g.y = fround(y + cosa * ascent - sina * xpos);
|
||||
g.x = int(x + cosa * xpos + sina * ascent);
|
||||
g.y = int(y + cosa * ascent - sina * xpos);
|
||||
xpos += dx ? dx[i] : font[text[i]];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue