comparison 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
comparison
equal deleted inserted replaced
2912:ab03dae59d6e 2913:058851941abe
151 LoadFromMemory(font); 151 LoadFromMemory(font);
152 } 152 }
153 #endif 153 #endif
154 154
155 155
156 #if ORTHANC_HAS_EMBEDDED_RESOURCES == 1
157 void Font::LoadFromResource(EmbeddedResources::FileResourceId resource)
158 {
159 std::string content;
160 EmbeddedResources::GetFileResource(content, resource);
161 LoadFromMemory(content);
162 }
163 #endif
164
165
156 static unsigned int MyMin(unsigned int a, 166 static unsigned int MyMin(unsigned int a,
157 unsigned int b) 167 unsigned int b)
158 { 168 {
159 return a < b ? a : b; 169 return a < b ? a : b;
160 } 170 }