general compilation and optimization glyphs

This commit is contained in:
Kulikova Svetlana
2021-07-26 18:37:49 +03:00
parent d652e3c32f
commit 5214162718
7 changed files with 99 additions and 55 deletions

View File

@ -698,6 +698,9 @@ void CDjVuFileImplementation::CreateFrame(IRenderer* pRenderer, GP
{
TextToRenderer(pRenderer, text, dPixToMM / nDpi);
}
#ifdef WASM_MODE
TextToRenderer(pRenderer, text, dPixToMM / nDpi);
#endif
pRenderer->DrawImage((IGrObject*)&oImage, 0, 0, dRendWidth, dRendHeight);
pRenderer->EndCommand(c_nPageType);

View File

@ -94,12 +94,14 @@ base.copy_file("./all_files_test/index.html", "./deploy/index.html")
base.copy_file("./all_files_test/code.js", "./deploy/code.js")
base.copy_file("./all_files_test/file.js", "./deploy/file.js")
base.copy_dir("./all_files_test/pdf", "./deploy/pdf")
if not base.is_dir("./../../DesktopEditor/graphics/pro/js/deploy"):
base.cmd_in_dir("./../../DesktopEditor/graphics/pro/js", "python", ["xps_make.py"])
if base.is_dir("./../../DesktopEditor/graphics/pro/js/deploy"):
base.create_dir("./deploy/xps")
base.copy_file("./../../DesktopEditor/graphics/pro/js/deploy/xps.js", "./deploy/xps/xps.js")
base.copy_file("./../../DesktopEditor/graphics/pro/js/deploy/xps.wasm", "./deploy/xps/xps.wasm")
else:
print("xps_make.py not used. core/DesktopEditor/graphics/pro/js/xps_make.py")
print("xps_make.py error")
base.copy_dir("./all_files_test/xps", "./deploy/xps")
base.delete_file("djvu.js")