changeset 1194:a0731faeafd3

fix build
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 27 Nov 2019 14:32:14 +0100
parents 681f339d6f85
children bdc6837d5917 a34ba19d2060
files Applications/Samples/SingleFrameEditorApplication.h
diffstat 1 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/Applications/Samples/SingleFrameEditorApplication.h	Wed Nov 27 14:19:17 2019 +0100
+++ b/Applications/Samples/SingleFrameEditorApplication.h	Wed Nov 27 14:32:14 2019 +0100
@@ -38,7 +38,6 @@
 #include "../../Framework/Toolbox/TextRenderer.h"
 
 #include <Core/HttpClient.h>
-#include <Core/Images/FontRegistry.h>
 #include <Core/Logging.h>
 #include <Core/OrthancException.h>
 #include <Core/Images/PngWriter.h>
@@ -318,11 +317,6 @@
 
           boost::shared_ptr<RadiographyScene> scene(new RadiographyScene(GetBroker()));
           RadiographySceneReader reader(*scene, context_->GetOrthancApiClient());
-
-          Orthanc::FontRegistry fontRegistry;
-          fontRegistry.AddFromResource(Orthanc::EmbeddedResources::FONT_UBUNTU_MONO_BOLD_16);
-
-          reader.SetFontRegistry(fontRegistry);
           reader.Read(snapshot);
 
           widget.SetScene(scene);
@@ -524,7 +518,7 @@
         }
 
         {
-          RadiographyLayer& layer = scene_->LoadText(fontRegistry_.GetFont(0), "Hello\nworld", NULL);
+          RadiographyLayer& layer = scene_->LoadText("Hello\nworld", 20, 128, NULL);
           layer.SetResizeable(true);
         }