Mercurial > hg > orthanc-stone
diff Framework/Scene2D/CairoCompositor.cpp @ 1471:28c64c246312
working on a shared library
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 15 Jun 2020 12:57:54 +0200 |
parents | 30deba7bc8e2 |
children |
line wrap: on
line diff
--- a/Framework/Scene2D/CairoCompositor.cpp Fri Jun 12 17:38:07 2020 +0200 +++ b/Framework/Scene2D/CairoCompositor.cpp Mon Jun 15 12:57:54 2020 +0200 @@ -138,12 +138,12 @@ #if ORTHANC_ENABLE_LOCALE == 1 void CairoCompositor::SetFont(size_t index, - Orthanc::EmbeddedResources::FileResourceId resource, + const std::string& ttf, unsigned int fontSize, Orthanc::Encoding codepage) { FontRenderer renderer; - renderer.LoadFont(resource, fontSize); + renderer.LoadFont(ttf, fontSize); std::unique_ptr<GlyphBitmapAlphabet> alphabet(new GlyphBitmapAlphabet); alphabet->LoadCodepage(renderer, codepage);