diff Framework/Scene2D/OpenGLCompositor.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 4f8db2d202c8
children 5c96bf3f1d32
line wrap: on
line diff
--- a/Framework/Scene2D/OpenGLCompositor.cpp	Fri Jun 12 17:38:07 2020 +0200
+++ b/Framework/Scene2D/OpenGLCompositor.cpp	Mon Jun 15 12:57:54 2020 +0200
@@ -228,14 +228,14 @@
 
 #if ORTHANC_ENABLE_LOCALE == 1
   void OpenGLCompositor::SetFont(size_t index,
-                                 Orthanc::EmbeddedResources::FileResourceId resource,
+                                 const std::string& ttf,
                                  unsigned int fontSize,
                                  Orthanc::Encoding codepage)
   {
     if (!context_.IsContextLost())
     {
       FontRenderer renderer;
-      renderer.LoadFont(resource, fontSize);
+      renderer.LoadFont(ttf, fontSize);
 
       GlyphBitmapAlphabet dict;
       dict.LoadCodepage(renderer, codepage);