changeset 1223:04fd875b91f4

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 07 Dec 2019 18:41:54 +0100
parents e2435a524029
children 37bc7f115f81 8154350aa195
files Applications/Samples/SingleFrameEditorApplication.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Applications/Samples/SingleFrameEditorApplication.h	Sat Dec 07 17:47:35 2019 +0100
+++ b/Applications/Samples/SingleFrameEditorApplication.h	Sat Dec 07 18:41:54 2019 +0100
@@ -516,8 +516,8 @@
         }
 
         {
-          RadiographyTextLayer::SetFont(Orthanc::EmbeddedResources::UBUNTU_FONT);
-          RadiographyLayer& layer = scene_->LoadText("Hello\nworld", 20, 128, NULL);
+          RadiographyTextLayer::RegisterFont("ubuntu", Orthanc::EmbeddedResources::UBUNTU_FONT);
+          RadiographyLayer& layer = scene_->LoadText("Hello\nworld", "ubuntu", 20, 128, NULL, false);
           layer.SetResizeable(true);
         }