diff Framework/Radiography/RadiographyScene.cpp @ 1190:f417a0ae282b

wip: TextLayer with new fonts
author Alain Mazy <alain@mazy.be>
date Tue, 26 Nov 2019 15:27:48 +0100
parents 4663f158c748
children bdc6837d5917 a5f2a6b04a31
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyScene.cpp	Fri Nov 22 09:51:22 2019 +0100
+++ b/Framework/Radiography/RadiographyScene.cpp	Tue Nov 26 15:27:48 2019 +0100
@@ -282,12 +282,13 @@
   }
 
 
-  RadiographyLayer& RadiographyScene::LoadText(const Orthanc::Font& font,
-                                               const std::string& utf8,
+  RadiographyLayer& RadiographyScene::LoadText(const std::string& utf8,
+                                               size_t fontSize,
+                                               uint8_t foreground,
                                                RadiographyLayer::Geometry* geometry)
   {
     std::auto_ptr<RadiographyTextLayer>  alpha(new RadiographyTextLayer(IObservable::GetBroker(), *this));
-    alpha->LoadText(font, utf8);
+    alpha->LoadText(utf8, fontSize, foreground);
     if (geometry != NULL)
     {
       alpha->SetGeometry(*geometry);