#pentagram@irc.freenode.net logs for 24 Jan 2004 (GMT)

Archive Today Yesterday Tomorrow
Pentagram homepage

[00:10:33] --> SB-X has joined #pentagram
[00:48:47] <-- SB-X has left IRC (Read error: 104 (Connection reset by peer))
[00:49:02] --> sbx has joined #pentagram
[01:22:56] <-- sbx has left IRC ()
[01:38:01] --> Kirben has joined #pentagram
[01:38:01] --- ChanServ gives channel operator status to Kirben
[02:22:57] <-- watt has left IRC ("using sirc version 2.211+KSIRC/1.2.4")
[03:18:13] --> Jett has joined #pentagram
[03:22:32] <-- Darke has left IRC (Read error: 110 (Connection timed out))
[04:35:02] --> Knight has joined #pentagram
[04:47:20] --- Jett is now known as Darke
[04:47:23] --- ChanServ gives channel operator status to Darke
[08:55:29] <-- Knight has left IRC (Read error: 60 (Operation timed out))
[09:01:06] --> jive_turkey has joined #pentagram
[09:02:39] <jive_turkey> Yo.
[09:04:08] <-- jive_turkey has left #pentagram ()
[09:04:10] --> jive_turkey has joined #pentagram
[09:04:14] <-- jive_turkey has left #pentagram ()
[11:36:52] --> Colourless has joined #Pentagram
[11:36:57] --- ChanServ gives channel operator status to Colourless
[11:37:07] <Colourless> hi
[11:38:04] <servus> *cough*webpage*cough*:-)
[11:43:17] <Colourless> so?
[11:53:53] <servus> You should at least say you don't want it, if you don't want it. This is like when I went to the KFC drivethrough last night, and tried to order, but the guy kept ignoring me because they closed early... He should've just said they were closed! He lowered his head as I drove past the drivethrough window so I stopped and gave him sign language.
[11:53:56] * servus grins
[11:54:14] <servus> Hmm, sleepy, yesh, tired, rowr, mrawr, mew. *zzz*
[12:31:10] --> Fingolfin has joined #pentagram
[12:31:11] --- ChanServ gives channel operator status to Fingolfin
[12:37:41] <-- servus has left IRC ()
[12:39:45] <wjp> well, I got rid of the memory leaks, and even got SimpleTextWidget to cache the RenderedText now :-)
[12:39:54] <Fingolfin> hi
[12:39:56] <Colourless> ooh :-)
[12:39:59] <wjp> hi Max
[13:02:50] --> SB-X has joined #pentagram
[14:31:45] <-- SB-X has left IRC ()
[14:41:00] * wjp wonders how to do the PrintCharFixed function in the new font framework
[14:41:42] <wjp> (or any of the PrintChar* functions, for that matter; but PrintCharFixed seems to be the only one that's used)
[14:43:00] <Colourless> leave that as is for the moment
[15:08:29] <wjp> anyway, we need a member function of Font that typesets a given string in a given rectangle
[15:08:56] <wjp> possibly allowing left/right/center aligned
[15:23:16] --> Knight has joined #pentagram
[15:26:41] <wjp> hm, how would you prefer to return how much of the string it managed to fit inside the rectangle?
[15:27:06] <wjp> the remaining substring as a std::string? Number of characters done?
[15:27:27] <wjp> index into the string that points to the remaining text?
[15:29:19] <Colourless> index
[15:29:26] <Colourless> more flexible that way
[15:35:13] <wjp> hm, seeing how AskGump/ButtonWidget use the text, apparentle we also need the real dimensions of the text
[15:35:19] <wjp> s/entle/ently/
[15:36:54] <wjp> but maybe I shouldn't look at SimpleTextWidget too much since it isn't 'final' yet
[15:36:57] <wjp> :-)
[15:40:31] <wjp> maybe a simple 'renderText' function should render the text as a simple string without any word-wrapping and return the text's bounding box as dimensions
[15:41:30] <wjp> and another function would render text into a given rectangle. This would return the rectangle's width as its width. (Height should probably be actual text height, although that would probably depend on how it's used exactly)
[15:42:44] <-- Kirben has left IRC ("System Meltdown")
[15:43:02] <Colourless> should have ability for it to auto size for height with a specified width
[15:43:26] <Colourless> say by setting desired height to 0, it will work out the height itself
[15:43:55] <wjp> yeah, that was what I was thinking too
[15:43:56] <Colourless> you could do the same with width too
[15:44:28] <Colourless> if you specify 0 for width it will only do newlines if there are \n chars
[15:51:58] <wjp> ok, so'll we'll have something like 'virtual RenderedText* renderText(std::string text, int& remaining, int width=0, int height=0, TextAlign align=TEXT_LEFT);"
[15:52:20] <wjp> and probably also a similar function that only gets the resulting text dimensions
[15:53:30] <Colourless> of course aligning text to an auto width is not a good idea :-)
[15:54:45] <wjp> I think align should only do something when width != 0, yes :-)
[15:56:40] <wjp> well, actually it might have an effect when you have \n's
[16:21:42] <Colourless> going
[16:21:47] <-- Colourless has left IRC ("casts invisibility")
[16:22:24] --> SB-X has joined #pentagram
[17:33:24] <-- ragzter has left IRC ("aoeu")
[17:54:29] <-- SB-X has left IRC (Read error: 104 (Connection reset by peer))
[19:16:19] --> jive_turkey has joined #pentagram
[19:17:45] <-- jive_turkey has left #pentagram ()
[19:18:27] <-- Fingolfin has left IRC ("42")
[23:48:19] <wjp> http://www.math.leidenuniv.nl/~wpalenst/pentagramfont.png