mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-07-05 17:48:38 +00:00
clean
This commit is contained in:
parent
eb632c529e
commit
88724a7bd5
|
@ -244,8 +244,7 @@ void HTMLRenderer::embed_font(const string & filepath, GfxFont * font, FontInfo
|
||||||
if(is_truetype_suffix(suffix))
|
if(is_truetype_suffix(suffix))
|
||||||
{
|
{
|
||||||
ffw_reencode_glyph_order();
|
ffw_reencode_glyph_order();
|
||||||
FoFiTrueType *fftt = nullptr;
|
if(FoFiTrueType * fftt = FoFiTrueType::load((char*)filepath.c_str()))
|
||||||
if((fftt = FoFiTrueType::load((char*)filepath.c_str())) != nullptr)
|
|
||||||
{
|
{
|
||||||
code2GID = font_8bit->getCodeToGIDMap(fftt);
|
code2GID = font_8bit->getCodeToGIDMap(fftt);
|
||||||
code2GID_len = 256;
|
code2GID_len = 256;
|
||||||
|
@ -570,8 +569,7 @@ const FontInfo * HTMLRenderer::install_font(GfxFont * font)
|
||||||
return &(cur_info_iter->second);
|
return &(cur_info_iter->second);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto * font_loc = font->locateFont(xref, gTrue);
|
if(auto * font_loc = font->locateFont(xref, gTrue))
|
||||||
if(font_loc != nullptr)
|
|
||||||
{
|
{
|
||||||
switch(font_loc -> locType)
|
switch(font_loc -> locType)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user