Mercurial > hg > orthanc
comparison OrthancFramework/Sources/Images/FontRegistry.cpp @ 4298:db3932f9660d
abi continued
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 05 Nov 2020 18:21:03 +0100 |
parents | 2d5209153b32 |
children | d9473bd5ed43 |
comparison
equal
deleted
inserted
replaced
4297:785a2713323e | 4298:db3932f9660d |
---|---|
53 f->LoadFromFile(path); | 53 f->LoadFromFile(path); |
54 fonts_.push_back(f.release()); | 54 fonts_.push_back(f.release()); |
55 } | 55 } |
56 #endif | 56 #endif |
57 | 57 |
58 size_t FontRegistry::GetSize() const | |
59 { | |
60 return fonts_.size(); | |
61 } | |
58 | 62 |
59 const Font& FontRegistry::GetFont(size_t i) const | 63 const Font& FontRegistry::GetFont(size_t i) const |
60 { | 64 { |
61 if (i >= fonts_.size()) | 65 if (i >= fonts_.size()) |
62 { | 66 { |
78 } | 82 } |
79 } | 83 } |
80 | 84 |
81 return NULL; | 85 return NULL; |
82 } | 86 } |
83 | |
84 } | 87 } |