On Wed, Dec 11, 2002 at 10:44:46AM +0100, Lars Gullik Bjønnes wrote:
> This I do not quite get. Is it the function calling this that needs it
> non-const?
We have font_info * getfontinfo(LyXFont)
and then charwidth(LyXFont)
{
fi = getfontinfo(LyXFont);
...
fi->widthcach
John Levon <[EMAIL PROTECTED]> writes:
| On Wed, Dec 11, 2002 at 12:18:25AM +0100, Lars Gullik Bjønnes wrote:
|
| > basically most special/general to least special/general.
|
| Erm, most special or most general ?
Blame it on the Pub... most special to most general
Our own header files are speci
On Tue, Dec 10, 2002 at 10:59:03PM +0200, Dekel Tsur wrote:
> On Tue, Dec 10, 2002 at 08:00:03PM +, John Levon wrote:
> > >
> > > "short" makes me go: "Hu! Why? Anything special going on here?"
> >
> > why not save some memory ?
>
> The saving is negligible (compared to the memory already us
On Wed, Dec 11, 2002 at 12:18:25AM +0100, Lars Gullik Bjønnes wrote:
> basically most special/general to least special/general.
Erm, most special or most general ?
note qt2/ has to do spiecial things due to Qt headers anyway
> | > | + font_info * fi =
> | > | fontinfo_[f.family()][f.serie
John Levon <[EMAIL PROTECTED]> writes:
| On Tue, Dec 10, 2002 at 08:48:02PM +0100, Lars Gullik Bjønnes wrote:
|
| > | +#include
| > | +
| > | +#include "encoding.h"
| > | #include "lyxfont.h"
| > |
| > | #include
| >
| > include order
|
| I have never been able to work out what you want
On Tue, Dec 10, 2002 at 10:59:03PM +0200, Dekel Tsur wrote:
> > > "short" makes me go: "Hu! Why? Anything special going on here?"
> >
> > why not save some memory ?
>
> The saving is negligible (compared to the memory already used by the map, and
> the memory used to hold the font).
We have to
On Tue, Dec 10, 2002 at 08:00:03PM +, John Levon wrote:
> >
> > "short" makes me go: "Hu! Why? Anything special going on here?"
>
> why not save some memory ?
The saving is negligible (compared to the memory already used by the map, and
the memory used to hold the font).
> > And why cannot
On Tue, Dec 10, 2002 at 08:48:02PM +0100, Lars Gullik Bjønnes wrote:
> | +#include
> | +
> | +#include "encoding.h"
> | #include "lyxfont.h"
> |
> | #include
>
> include order
I have never been able to work out what you wanted with these, and I
never understood your summary
> | + ///
John Levon <[EMAIL PROTECTED]> writes:
| +#include
| +
| +#include "encoding.h"
| #include "lyxfont.h"
|
| #include
include order
| @@ -44,6 +47,10 @@
| QFontMetrics const & metrics(LyXFont const & f) {
| return getfontinfo(f)->metrics;
| }
| +
| + /// retur
Here it is. OK ?
This is a little faster; sub-second times on userguide are now common,
so it's pretty much on a par with xforms (glacial) speed
regards
john
--
"Saying that taste is just personal preference is a good way to prevent
disputes. The trouble is, it's not true."
- Paul Graha
10 matches
Mail list logo