[Open Office] fontconfig patches from FC

Caolan McNamara caolanm at redhat.com
Fri Sep 29 08:35:35 EDT 2006


On Fri, 2006-09-29 at 14:03 +0200, Robert Vojta wrote:
> On Fri, 2006-09-29 at 11:42 +0200, Robert Vojta wrote:
> 
> Hallo Matthias,
> 
> > when I apply your latest fontconfig-* patches (from FC), ooo-build fails
> > to build for Windows somewhere in vcl. AFAIK it was something to do with
> > 'std::abs', but I can't remember, haven't access to my home machine logs
> > now. I'll send you more details tomorrow ...
> 
>   as tml wrote on IRC, it's enough to change ...
> 
>   if ((n+1 < nLevel) && (std::abs(nCharPos[n] - nOrigCharPos)))


Might be I actually meant...

if ((n+1 < nLevel) && (abs(nCharPos[n] - nOrigCharPos) == 1))

> 
>   ... to ...
> 
>   if ((n+1 < nLevel) && ((nCharPos[n] - nOrigCharPos) != 0))
> 
>   Hmm, but I think that there is another mistake in this patch too. Look
> at following conditions. The 1st and 2nd are same.
> 
> +     if (nOrigCharPos < nCharPos[n])   <---!!!!!
> +     {
> +         if (nCharPos[n+1] > nOrigCharPos && (nCharPos[n+1] < nCharPos[n]))
> +            break;
> +     }
> +     else if (nOrigCharPos < nCharPos[n]) <---!!!!!!
> +     {
> +         if (nCharPos[n+1] > nCharPos[n] && (nCharPos[n+1] < nOrigCharPos))
> +             break;
> +     }
> 

This should be probably be nOrigCharPos > nCharPos[n] for the 2nd one

>   And the next thing from tml is, how can nOrigCharPos differ from
> nCharPos[n] when nOrigCharPos is defined as int nOrigCharPos = nCharPos[n]?
> 

an intermediate line is...

 nValid[n] = mpLayouts[n]->GetNextGlyphs( 1, &nDummy, aPos,
                nStartNew[n], &nGlyphAdv[n], &nCharPos[n] );

which changes the value of nCharPos[n]

C.



More information about the Openoffice mailing list