Re: new fp_EmbedRun methods need implementing

From: <msevior_at_physics.unimelb.edu.au>
Date: Sat Sep 17 2005 - 00:26:12 CEST

>
> Hi Martin,
>
> In order to maintain wysiwyg layout on win32, we have to force all
> text-based runs to remeasure their width and height and to rebuild
> layout when the user changes the currently selected printer. For this to
> work with embeded equations, fp_EmbedRun needs to provide implementation
> of _recalcWidth() and updateVerticalMetric(). The former should need no
> comments, the latter method needs to set m_iAscent, m_iDescent and
> m_iHeight to the correct values.
>
> I think this should be fairly straightforward for someone familiar with
> the fp_EmbedRun code, and needs to be done before 2.4 release.
>

Hi Tomas,
         I think both these can be implemented with a call to
bool fp_EmbedRun::_updatePropValuesIfNeeded(void)

ie
fp_EmbedRun::_recalcWidth()
{
    _updatePropValuesIfNeeded();
}

fp_EmbedRun::updateVerticalMetric()
{
    _updatePropValuesIfNeeded();
}

Could you check that this does what you want?

Cheers

Martin

> Tomas
>
>
>
> ___________________________________________________________
> To help you stay safe and secure online, we've developed the all new
> Yahoo! Security Centre. http://uk.security.yahoo.com
>
>
Received on Sat Sep 17 00:27:32 2005

This archive was generated by hypermail 2.1.8 : Sat Sep 17 2005 - 00:27:33 CEST