mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
fix for svg
This commit is contained in:
parent
d78a4b4154
commit
e45a49d40e
@ -1319,6 +1319,8 @@ void CairoOutputDev::endString(GfxState *state)
|
|||||||
GBool CairoOutputDev::beginType3Char(GfxState *state, double x, double y,
|
GBool CairoOutputDev::beginType3Char(GfxState *state, double x, double y,
|
||||||
double dx, double dy,
|
double dx, double dy,
|
||||||
CharCode code, Unicode *u, int uLen) {
|
CharCode code, Unicode *u, int uLen) {
|
||||||
|
//debug
|
||||||
|
printf("DEBUG: beginType3Char\n");
|
||||||
|
|
||||||
cairo_save (cairo);
|
cairo_save (cairo);
|
||||||
double *ctm;
|
double *ctm;
|
||||||
|
@ -605,7 +605,6 @@ const FontInfo * HTMLRenderer::install_font(GfxFont * font)
|
|||||||
FontInfo & new_font_info = cur_info_iter->second;
|
FontInfo & new_font_info = cur_info_iter->second;
|
||||||
new_font_info.id = new_fn_id;
|
new_font_info.id = new_fn_id;
|
||||||
new_font_info.use_tounicode = true;
|
new_font_info.use_tounicode = true;
|
||||||
new_font_info.is_embeded = false;
|
|
||||||
|
|
||||||
if(font == nullptr)
|
if(font == nullptr)
|
||||||
{
|
{
|
||||||
@ -653,14 +652,12 @@ const FontInfo * HTMLRenderer::install_font(GfxFont * font)
|
|||||||
switch(font_loc -> locType)
|
switch(font_loc -> locType)
|
||||||
{
|
{
|
||||||
case gfxFontLocEmbedded:
|
case gfxFontLocEmbedded:
|
||||||
new_font_info.is_embeded = true;
|
|
||||||
install_embedded_font(font, new_font_info);
|
install_embedded_font(font, new_font_info);
|
||||||
break;
|
break;
|
||||||
case gfxFontLocResident:
|
case gfxFontLocResident:
|
||||||
std::cerr << "Warning: Base 14 fonts should not be specially handled now. Please report a bug!" << std::endl;
|
std::cerr << "Warning: Base 14 fonts should not be specially handled now. Please report a bug!" << std::endl;
|
||||||
/* fall through */
|
/* fall through */
|
||||||
case gfxFontLocExternal:
|
case gfxFontLocExternal:
|
||||||
new_font_info.is_embeded = false;
|
|
||||||
install_external_font(font, new_font_info);
|
install_external_font(font, new_font_info);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -17,7 +17,6 @@ struct FontInfo
|
|||||||
double space_width;
|
double space_width;
|
||||||
double ascent, descent;
|
double ascent, descent;
|
||||||
bool is_type3;
|
bool is_type3;
|
||||||
bool is_embeded;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct HTMLTextState
|
struct HTMLTextState
|
||||||
|
@ -290,7 +290,7 @@ void check_param()
|
|||||||
#ifdef ENABLE_LIBJPEG
|
#ifdef ENABLE_LIBJPEG
|
||||||
else if (param.bg_format == "jpg") { }
|
else if (param.bg_format == "jpg") { }
|
||||||
#endif
|
#endif
|
||||||
#if not ENABLE_SVG
|
#if ENABLE_SVG
|
||||||
else if(param.bg_format == "svg") { }
|
else if(param.bg_format == "svg") { }
|
||||||
#endif
|
#endif
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user