Commit graph

113 commits

Author SHA1 Message Date
Mikael Magnusson
a08bb4abba minor movement of code 2005-07-16 01:01:04 +00:00
Mikael Magnusson
a5100fe677 make the pango rendering code really complicated because that is the only way to make it draw correctly 2005-07-16 00:56:45 +00:00
Mikael Magnusson
8f9aae0cc2 fix the dpi stuff with pango by reading the right ascent and descent stuff 2005-07-15 14:39:31 +00:00
Mikael Magnusson
0417d1226c RrFontHeight is meaningless with pango, it will be different for every string drawn, so ask pango for the height after we tell it the text to draw. Should make text be centered vertically better when mixing fonts. Still moves a pixel down for some strings for me, but it was several before. If anyone knows more about this please mail or bugzilla etc. Also fix an indenting error. 2005-06-26 01:39:53 +00:00
Mikael Magnusson
3b51624005 well, i pinpointed the problem code that causes the fonts to be cut off, but this workaround is extremely temporary and possibly only works for me by accident? 2005-04-04 07:02:22 +00:00
Mikael Magnusson
7fc31cd045 fix a warning 2005-03-31 08:31:31 +00:00
Mikael Magnusson
2290916e2e Update the pango code 2005-03-11 21:49:07 +00:00
Mikael Magnusson
7089a86006 remove a spurious identical ifdef diff decided to generate 2005-02-13 17:27:51 +00:00
Mikael Magnusson
9be3a21380 apparently nobody uses cvs or bothers to tell me about compile errors 2004-12-03 23:53:17 +00:00
Mikael Magnusson
e7d1ba6ae3 Pango! yay. Patch mostly by Mohammed Sameer, fixed some memleaks and ifdeffed by me. May still have some bugs. 2004-11-07 13:20:54 +00:00
Mikael Magnusson
4b32a060ad no more april's fool (and also committed a bit too much before) 2004-04-01 21:50:11 +00:00
Mikael Magnusson
1c9a69e1df these two changes make the text a lot more readable 2004-03-31 18:32:44 +00:00
Dana Jansens
740c5b2a20 consistant glib type usage 2003-10-15 03:59:35 +00:00
Dana Jansens
16f46c296d no tabs 2003-09-17 07:44:49 +00:00
Dana Jansens
c4e4760c41 add copyright headers, adjust --version output to include copyright, and --help output to not include version output. 2003-09-17 07:32:52 +00:00
Dana Jansens
54d04314e7 remove debug print 2003-09-14 07:33:16 +00:00
Dana Jansens
3dc4750ea4 destroy 'pat' always 2003-09-14 06:42:04 +00:00
Dana Jansens
4685a11530 wasted variable 2003-09-12 05:56:02 +00:00
Dana Jansens
700e551390 fix a bunch of memleaks from valgrind and stuff 2003-08-28 19:10:36 +00:00
Dana Jansens
c34ef4028e half way through the changes to new menu code/design. hot shit. static menus work, on to plugins next. 2003-08-28 02:10:23 +00:00
Dana Jansens
36056a69d7 missing a header 2003-07-31 16:30:53 +00:00
Dana Jansens
58be655de3 remove rependancy on geom.h from the kernel, provide what is used in its own geom.h 2003-07-10 04:31:34 +00:00
Dana Jansens
7f44ed5362 include stdlib for exit() 2003-07-07 20:26:32 +00:00
Dana Jansens
121afb76eb remove debug print 2003-06-28 19:06:03 +00:00
Dana Jansens
1bb7a5f883 don't destroy font patterns, i think this is a double free 2003-06-28 17:29:23 +00:00
Dana Jansens
15c7707181 dont destroy the match pattern, it seems that Xft holds onto the pointer 2003-06-26 17:51:52 +00:00
Dana Jansens
a12e73cf37 read fonts and titlebar layout from theme files 2003-06-26 01:29:45 +00:00
Dana Jansens
c791cbfda0 set teh X so it gets used right 2003-06-25 21:18:16 +00:00
Dana Jansens
0901ddf891 keep a small space on the sides of windows between the edge and the text 2003-06-25 21:17:15 +00:00
Dana Jansens
dc92dbfc56 don't exit in the render lib, rather return a NULL font/theme on failure 2003-06-21 05:35:05 +00:00
Dana Jansens
c100b72c5d more namespacing with Rr* 2003-06-21 02:26:50 +00:00
Dana Jansens
dbe2851b91 more namespacing to Rr* 2003-06-21 02:15:13 +00:00
Dana Jansens
b1f5555218 put the render theme into a struct 2003-06-21 01:53:26 +00:00
Dana Jansens
3f32dfa87e this is going to break the kernel/ building.
lots of modifications to the render API, prefixing everything, making proper
names for everything. the structures are not hidden/opaque yet, but the naming scheme of the public API works much better now.
2003-06-20 07:58:51 +00:00
Dana Jansens
49268650b4 oops typo 2003-06-20 05:45:55 +00:00
Dana Jansens
62240d2b0f take the bevel width into account for the width available 2003-06-20 02:39:20 +00:00
Dana Jansens
cd12a2eae5 simply the render interface by not requiring the setting of all the areas. only take a w and h in paint(). best font layout ever. 2003-06-20 02:17:23 +00:00
Dana Jansens
fd52dc5d35 center text vertically. use the font's height because all that space is needed for some charcters 2003-06-20 00:38:25 +00:00
Dana Jansens
955d9d8e30 optimize it a bit 2003-05-21 22:19:01 +00:00
Dana Jansens
9b2a67d044 pass the number of bytes, not characters to the xft draw functions 2003-05-21 22:17:36 +00:00
Dana Jansens
f26f23de50 all my changes while i was offline.
better alt-tabbing. better transient handling. i dont even know. lots of fucking cool shit so WATCH the FUCK OUT.
2003-05-09 16:57:17 +00:00
Dana Jansens
b486929d34 indenting oopsie 2003-04-14 22:42:23 +00:00
Dana Jansens
64e0884413 text justification 2003-04-14 22:12:26 +00:00
Dana Jansens
ef1f7b0494 allow closing NULL fonts 2003-04-13 02:29:09 +00:00
Dana Jansens
4875ff5f8e whitespace 2003-04-02 06:40:57 +00:00
Dana Jansens
60204c4348 kill debug print 2003-04-02 06:40:49 +00:00
Dana Jansens
301c302e4e use the tint properly for the shadow 2003-04-02 06:37:52 +00:00
Dana Jansens
feb6bc632f use 'sans' as the fallback font instead of 'fixed' 2003-03-30 23:34:00 +00:00
Derek Foreman
2880e674ea add a Rect to the textures for positioning them 2003-03-26 02:19:38 +00:00
Dana Jansens
5755a7a564 bettr font alignment, i think 2003-03-25 22:00:14 +00:00
Dana Jansens
8fff73fa7a seems to be better text placement than ever 2003-03-23 22:03:32 +00:00
Dana Jansens
f2add3a5b0 found what seems to be a better vertical offset for the fonts 2003-03-23 21:55:04 +00:00
Dana Jansens
0a69cfc6d2 add strict ansi compliance 2003-03-21 20:25:34 +00:00
Dana Jansens
ff97498e1d include gettext.h from the right place 2003-03-21 18:46:44 +00:00
Dana Jansens
60cbb9ee92 kill the const, use g_new instead of malloc, g_free the font in font_close() 2003-03-19 07:26:25 +00:00
Dana Jansens
812b9b03f4 clean up comments regarding alpha 2003-03-19 07:20:45 +00:00
Dana Jansens
cb73f209c9 dont put \n's at the end of g_message 2003-03-17 23:04:43 +00:00
Dana Jansens
033bd73e7e kill the debug print 2003-03-17 20:00:00 +00:00
Dana Jansens
0c2f95674f pass the x,y,w,h to font_draw.
draw the text in the "right" place for now.. no justification yet
2003-03-17 07:30:30 +00:00
Dana Jansens
a4838c740c measure the font's height instead of listening to Xft 2003-03-17 06:41:40 +00:00
Derek Foreman
88a8bc413b add font_draw 2003-03-16 23:35:00 +00:00
Derek Foreman
aa68e45b19 added some font stuff 2003-03-16 22:34:05 +00:00
Dana Jansens
f8a47de5ec merge the C branch into HEAD 2003-03-16 21:11:39 +00:00