# HG changeset patch # User Sebastien Jodogne # Date 1574861534 -3600 # Node ID a0731faeafd372e48821c85009ef64f2ffe862bf # Parent 681f339d6f8561e14af7bf9de46c8f69cc7fcc75 fix build diff -r 681f339d6f85 -r a0731faeafd3 Applications/Samples/SingleFrameEditorApplication.h --- 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 -#include #include #include #include @@ -318,11 +317,6 @@ boost::shared_ptr 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); }