MCPcopy Create free account
hub / github.com/TeXworks/texworks / isSubset

Method isSubset

modules/QtPDF/src/PDFFontDescriptor.cpp:28–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28bool PDFFontDescriptor::isSubset() const
29{
30 // Subset fonts have a tag of 6 upper-case letters, followed by a '+',
31 // prefixed to the font name
32 if (_name.length() < 7 || _name[6] != QChar::fromLatin1('+'))
33 return false;
34 for (int i = 0; i < 6; ++i) {
35 if (!_name[i].isUpper())
36 return false;
37 }
38 return true;
39}
40
41QString PDFFontDescriptor::pureName() const
42{

Callers 2

fontDescriptorMethod · 0.45
foreachFunction · 0.45

Calls

no outgoing calls

Tested by 1

fontDescriptorMethod · 0.36