mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-10-05 19:41:40 +00:00
render text on background image if used as path
This commit is contained in:
parent
4ec223297d
commit
f5c2cca4f5
@ -53,10 +53,12 @@ void CairoBackgroundRenderer::drawChar(GfxState *state, double x, double y,
|
|||||||
// - OR there is special filling method
|
// - OR there is special filling method
|
||||||
// - OR using a writing mode font
|
// - OR using a writing mode font
|
||||||
// - OR using a Type 3 font while param.process_type3 is not enabled
|
// - OR using a Type 3 font while param.process_type3 is not enabled
|
||||||
|
// - OR the text is used as path
|
||||||
if((param.fallback || param.proof)
|
if((param.fallback || param.proof)
|
||||||
|| ( (state->getFont())
|
|| ( (state->getFont())
|
||||||
&& ( (state->getFont()->getWMode())
|
&& ( (state->getFont()->getWMode())
|
||||||
|| ((state->getFont()->getType() == fontType3) && (!param.process_type3))
|
|| ((state->getFont()->getType() == fontType3) && (!param.process_type3))
|
||||||
|
|| (state->getRender() >= 4)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -78,10 +78,12 @@ void SplashBackgroundRenderer::drawChar(GfxState *state, double x, double y,
|
|||||||
// - OR there is special filling method
|
// - OR there is special filling method
|
||||||
// - OR using a writing mode font
|
// - OR using a writing mode font
|
||||||
// - OR using a Type 3 font while param.process_type3 is not enabled
|
// - OR using a Type 3 font while param.process_type3 is not enabled
|
||||||
|
// - OR the text is used as path
|
||||||
if((param.fallback || param.proof)
|
if((param.fallback || param.proof)
|
||||||
|| ( (state->getFont())
|
|| ( (state->getFont())
|
||||||
&& ( (state->getFont()->getWMode())
|
&& ( (state->getFont()->getWMode())
|
||||||
|| ((state->getFont()->getType() == fontType3) && (!param.process_type3))
|
|| ((state->getFont()->getType() == fontType3) && (!param.process_type3))
|
||||||
|
|| (state->getRender() >= 4)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user