Hi Yuri,

>>Please see vcl/source/gdi/pdfwriter_impl.cxx for details on when the
>>emulated boldness is triggered:
>>    (maFontSelData.mpFontData->GetWeight() <= WEIGHT_MEDIUM)
>> && (maFontSelData.GetWeight() > WEIGHT_MEDIUM)
>>This means that if the requested font is bold and the selected device font
>>has medium weight then the exported text gets emulated boldness.
> 
> so my first idea was correct.
> 
> I did some more debugging, but the problem seems to be at higher level:
> when an 'Arial Bold' text is drawn to the display, OOo calls
> SalGraphics::SetFont exactly with this font, and screen is ok.
> But when it comes to pdf export, in the new presentation space,
> SalGraphics::SetFont is called to select the 'Arial' font. The pointers
> are different, so OOo is effectively using two different fonts.

Which pointers? The ImplFontSelectData::mpFontData pointers?
Even though the pointers might be different it wouldn't mean that the device
fonts are different. Please compare the ImplFontData members of the objects
pointed at. Especially compare the ImplFontData::meWeight member.

--
Herbert

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to