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