* Dekel Tsur <[EMAIL PROTECTED]> [2001-08-22 14:37] wrote:
> On Wed, Aug 22, 2001 at 11:11:31AM +0200, Andre Poenitz wrote:
> > 
> > Could anybody please try the attached patch and report failure or success?
> 
> It works, but the rendering is not correct.
> It appears that the problem is only with the cmex font, so
> a possible fix is
> 
> void MathSymbolInset::metrics(MathStyles st) const
> {
>       size(st);
>       MathTextCodes code_ = code();
>       mathed_char_dim(code_, size_, sym_->id, ascent_, descent_, width_);
>       if (code_ == LM_TC_SYMEX) {
>               h_ = 4*descent_/5;
>               ascent_  += h_;
>               descent_ -= h_;
>       }
> }
> 
> void MathSymbolInset::draw(Painter & pain, int x, int y) const
> {  
>       xo(x);
>       yo(y);
> 
>       drawChar(pain, code(), size_, x, y - h_, sym_->id);
> }
i dont unterstand any of this but it works :)

> Some more points:
> 
> 1. \sqcup should be taken from the cmsy font (char 0x74),
>    and \bigsqcup should be 0x46 instead of 0x47
> 
> 2. If you don't have the tex math fonts installed, the result is bad:
> you get an F instead of \sqcup.
> So you need to add a code that checks whether the math fonts are available,
> and if not, \sqcup will be displayed using ERT.
dont we want to use xset +fp and install the fonts we need
configure could check if the fonts are already (system-)installed, so xset +fp would 
only be used if really needed
and the fonts arent so big that they couldnt be included in lyx

> 3. If the tex math fonts are available, then all symbols should be taken from
> these fonts (instead of using the standard X symbol font).
> Namely you should store for each symbol both its position in the X symbol font
> (if it exists there) and its position in the tex math font.
so no double translation needed 

-- 
ronny

Reply via email to