diff Core/Images/Font.cpp @ 2913:058851941abe

Font::LoadFromResource()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 31 Oct 2018 14:41:51 +0100
parents 93c65e3a6bb1
children 15b517659a74
line wrap: on
line diff
--- a/Core/Images/Font.cpp	Wed Oct 31 14:14:16 2018 +0100
+++ b/Core/Images/Font.cpp	Wed Oct 31 14:41:51 2018 +0100
@@ -153,6 +153,16 @@
 #endif
 
 
+#if ORTHANC_HAS_EMBEDDED_RESOURCES == 1
+  void Font::LoadFromResource(EmbeddedResources::FileResourceId resource)
+  {
+    std::string content;
+    EmbeddedResources::GetFileResource(content, resource);
+    LoadFromMemory(content);
+  }
+#endif
+
+
   static unsigned int MyMin(unsigned int a, 
                             unsigned int b)
   {