32std::map<G4VViewer*,std::vector<G4OpenGLFontBaseStore::FontInfo> >
33G4OpenGLFontBaseStore::fFontBaseMap;
39 fFontBaseMap[viewer].push_back(
FontInfo(fontName, size, fontBase, width));
45 std::map<G4VViewer*,std::vector<FontInfo> >::const_iterator i =
46 fFontBaseMap.find(viewer);
47 if (i != fFontBaseMap.end()) {
49 std::vector<FontInfo>::const_iterator j, k;
50 for (j = i->second.begin(); j != i->second.end(); ++j) {
51 G4double d = std::abs(size - j->fSize);
52 if (d < sizeDiscrepancy) {
static void AddFontBase(G4VViewer *, G4int fontBase, G4double size, const G4String &fontName, G4int width)
static const FontInfo & GetFontInfo(G4VViewer *, G4double size)