Skip to content
Snippets Groups Projects
Commit 89aef4c4 authored by Per Hedbor's avatar Per Hedbor
Browse files

Added font-cache

Rev: lib/modules/Protocols.pmod/X.pmod/Xlib.pmod:1.21
parent 69b5a6a9
No related branches found
No related tags found
No related merge requests found
......@@ -896,8 +896,11 @@ class Display
return req;
}
mapping (string:object) fonts = ([]);
object OpenFont(string name)
{
if(fonts[name]) return fonts[name];
object req = OpenFont_req(name);
send_request(req);
return Types.Font(this_object(), req->fid);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment