Commit 3813be21 authored by Oleg Korshul's avatar Oleg Korshul

--all-fonts-path param

parent 68c8c0cb
...@@ -546,6 +546,7 @@ namespace NSDoctRenderer ...@@ -546,6 +546,7 @@ namespace NSDoctRenderer
std::wstring m_strFilePath; std::wstring m_strFilePath;
std::wstring m_strAllFonts; std::wstring m_strAllFonts;
bool m_bIsNotUseConfigAllFontsDir;
std::wstring m_sTmpFolder; std::wstring m_sTmpFolder;
std::wstring m_sFileDir; std::wstring m_sFileDir;
...@@ -585,6 +586,8 @@ namespace NSDoctRenderer ...@@ -585,6 +586,8 @@ namespace NSDoctRenderer
m_sGlobalVariable = ""; m_sGlobalVariable = "";
m_bIsGlobalVariableUse = false; m_bIsGlobalVariableUse = false;
m_bIsNotUseConfigAllFontsDir = false;
} }
void Init() void Init()
...@@ -634,7 +637,7 @@ namespace NSDoctRenderer ...@@ -634,7 +637,7 @@ namespace NSDoctRenderer
oNodes.GetAt(i, _node); oNodes.GetAt(i, _node);
std::wstring strFilePath = _node.GetText(); std::wstring strFilePath = _node.GetText();
if (std::wstring::npos != strFilePath.find(L"AllFonts.js")) if (std::wstring::npos != strFilePath.find(L"AllFonts.js") && !m_bIsNotUseConfigAllFontsDir)
{ {
m_strAllFonts = strFilePath; m_strAllFonts = strFilePath;
...@@ -1717,6 +1720,11 @@ namespace NSDoctRenderer ...@@ -1717,6 +1720,11 @@ namespace NSDoctRenderer
m_pInternal->m_bIsCacheScript = (std::wstring(value) == L"true"); m_pInternal->m_bIsCacheScript = (std::wstring(value) == L"true");
else if (sParam == "--save-use-only-names") else if (sParam == "--save-use-only-names")
m_pInternal->m_sFolderForSaveOnlyUseNames = std::wstring(value); m_pInternal->m_sFolderForSaveOnlyUseNames = std::wstring(value);
else if (sParam == "--all-fonts-path")
{
m_pInternal->m_strAllFonts = std::wstring(value);
m_pInternal->m_bIsNotUseConfigAllFontsDir = true;
}
else if (sParam == "--argument") else if (sParam == "--argument")
{ {
std::wstring sArg(value); std::wstring sArg(value);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment