From 9a80b5fa016dab2c917ed0a81571de2f9c164ed5 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Tue, 1 Nov 2005 09:42:10 +0000 Subject: [PATCH] Looks like Axel did already all the changes I wanted to do.... so I'll just add a comment git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14609 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Font.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kits/interface/Font.cpp b/src/kits/interface/Font.cpp index b9229fb9e2..36c620f053 100644 --- a/src/kits/interface/Font.cpp +++ b/src/kits/interface/Font.cpp @@ -994,6 +994,10 @@ BFont::GetHeight(font_height *height) const if (height) { // R5's version actually contacts the server in this call. The more and more // I work with this class, the more and more I can't wait for R2 to fix it. Yeesh. + // TODO: As we have a fHeight member, maybe we could cache the height there ? + // If the size/family/style change, we can ABUSE the fFlags member and set a bit + // there, so that if that bit is high, this method would have to contact the + // server, otherwise it'll use the cached value. Or something like that. int32 code; BPrivate::AppServerLink link;