Skip to content

Commit

Permalink
Merge branch 'develop' into 'develop'
Browse files Browse the repository at this point in the history
qtplugin: postpone opening of the Hershey vector fonts

See merge request Scientific-IT-Systems/gr!923
  • Loading branch information
jheinen committed Sep 27, 2022
2 parents 85f21bd + 1f528f0 commit b28980d
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions lib/gks/plugin/qtplugin_impl.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1342,15 +1342,28 @@ static void memory_plugin_dl_render(int fctid, int dx, int dy, int dimx, int *ia
(void **)(&p->memory_plugin_ws_state_list));
}
return;

case 3:
if (gkss->fontfile != 0)
{
gks_close_font(gkss->fontfile);
}
break;
case 14:
{
int tx_prec = gkss->asf[6] ? gkss->txprec : predef_prec[gkss->tindex - 1];
if ((tx_prec == GKS_K_TEXT_PRECISION_STROKE || tx_prec == GKS_K_TEXT_PRECISION_CHAR) && gkss->fontfile == 0)
{
gkss->fontfile = gks_open_font();
}
}
break;
case 54:
if (!p->prevent_resize_by_dl || !p->interp_was_called)
{
p->window[0] = r1[0];
p->window[1] = r1[1];
p->window[2] = r2[0];
p->window[3] = r2[1];
p->memory_plugin(fctid, dx, dy, dimx, ia, lr1, r1, lr2, r2, lc, chars, (&p->memory_plugin_ws_state_list));
}
break;
case 55:
Expand All @@ -1360,17 +1373,13 @@ static void memory_plugin_dl_render(int fctid, int dx, int dy, int dimx, int *ia
p->viewport[1] = r1[1];
p->viewport[2] = r2[0];
p->viewport[3] = r2[1];
p->memory_plugin(fctid, dx, dy, dimx, ia, lr1, r1, lr2, r2, lc, chars, (&p->memory_plugin_ws_state_list));
}
break;

default:
if (p->memory_plugin_initialised)
{
p->memory_plugin(fctid, dx, dy, dimx, ia, lr1, r1, lr2, r2, lc, chars, (&p->memory_plugin_ws_state_list));
}
break;
}
if (p->memory_plugin_initialised)
{
p->memory_plugin(fctid, dx, dy, dimx, ia, lr1, r1, lr2, r2, lc, chars, (&p->memory_plugin_ws_state_list));
}
}

static void gks_memory_plugin_write_page()
Expand Down

0 comments on commit b28980d

Please sign in to comment.