mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-10-05 19:41:40 +00:00
..
This commit is contained in:
parent
7a9d98b194
commit
086a725863
@ -484,10 +484,10 @@ void HTMLRenderer::embed_font(const string & filepath, GfxFont * font, FontInfo
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Step 5
|
* Step 5
|
||||||
* Generate the font
|
* Generate the font and load the metrics
|
||||||
*
|
*
|
||||||
* Ascent/Descent are not used in PDF, and the values in PDF may be wrong or inconsistent (there are 3 sets of them)
|
* Ascent/Descent are not used in PDF, and the values in PDF may be wrong or inconsistent (there are 3 sets of them)
|
||||||
* We need to reload in order to retrieve/fix accurate ascent/descent
|
* We need to reload in order to retrieve/fix accurate ascent/descent, some info won't be written to the font by fontforge until saved.
|
||||||
*/
|
*/
|
||||||
string fn = (char*)str_fmt("%s/f%llx%s",
|
string fn = (char*)str_fmt("%s/f%llx%s",
|
||||||
(param->single_html ? param->tmp_dir : param->dest_dir).c_str(),
|
(param->single_html ? param->tmp_dir : param->dest_dir).c_str(),
|
||||||
|
@ -380,7 +380,8 @@ void ffw_set_widths(int * width_list, int mapping_len,
|
|||||||
&& (((sc->width > width_list[i] + EPS) && (squeeze_wide))
|
&& (((sc->width > width_list[i] + EPS) && (squeeze_wide))
|
||||||
|| ((sc->width < width_list[i] - EPS) && (stretch_narrow)))))
|
|| ((sc->width < width_list[i] - EPS) && (stretch_narrow)))))
|
||||||
{
|
{
|
||||||
real transform[6]; transform[0] = ((double)width_list[i]) / (sc->width);
|
real transform[6];
|
||||||
|
transform[0] = ((double)width_list[i]) / (sc->width);
|
||||||
transform[3] = 1.0;
|
transform[3] = 1.0;
|
||||||
transform[1] = transform[2] = transform[4] = transform[5] = 0;
|
transform[1] = transform[2] = transform[4] = transform[5] = 0;
|
||||||
FVTrans(cur_fv, sc, transform, NULL, fvt_alllayers | fvt_dontmovewidth);
|
FVTrans(cur_fv, sc, transform, NULL, fvt_alllayers | fvt_dontmovewidth);
|
||||||
|
Loading…
Reference in New Issue
Block a user