r24529 by jghali - Rename getSFontType() to getSubFontType()

scribus-commit scribus-commit at lists.scribus.net
Sat Feb 27 14:00:26 UTC 2021


Author: jghali
Date: Sat Feb 27 14:00:26 2021
New Revision: 24529

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24529
Log:
Rename getSFontType() to getSubFontType()

Modified:
    trunk/Scribus/scribus/scfonts.cpp

Modified: trunk/Scribus/scribus/scfonts.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24529&path=/trunk/Scribus/scribus/scfonts.cpp
==============================================================================
--- trunk/Scribus/scribus/scfonts.cpp	(original)
+++ trunk/Scribus/scribus/scfonts.cpp	Sat Feb 27 14:00:26 2021
@@ -300,7 +300,7 @@
  * Checks face, which must be sfnt based, for the subtype.
  * Possible values: TTF, CFF, OTF
  */
-void getSFontType(FT_Face face, ScFace::FontType & type) 
+void getSubFontType(FT_Face face, ScFace::FontType & type) 
 {
 	if (FT_IS_SFNT(face)) 
 	{
@@ -614,7 +614,7 @@
 			case ScFace::TTCF:
 			case ScFace::TYPE42:
 				t = ScFace(new ScFace_ttf(fam, sty, "", fullName, qpsName, filename, faceIndex, features));
-				getSFontType(face, t.m_m->typeCode);
+				getSubFontType(face, t.m_m->typeCode);
 				t.subset(Subset);
 				break;
 			default:
@@ -867,19 +867,19 @@
 					break;
 				case ScFace::SFNT:
 					t = ScFace(new ScFace_ttf(fam, sty, "", fullName, qpsName, filename, faceIndex, features));
-					getSFontType(face, t.m_m->typeCode);
+					getSubFontType(face, t.m_m->typeCode);
 					t.subset(Subset);
 					break;
 				case ScFace::TTCF:
 					t = ScFace(new ScFace_ttf(fam, sty, "", fullName, qpsName, filename, faceIndex, features));
 					t.m_m->formatCode = ScFace::TTCF;
 					t.m_m->typeCode = ScFace::TTF;
-					getSFontType(face, t.m_m->typeCode);
+					getSubFontType(face, t.m_m->typeCode);
 					t.subset(Subset);
 					break;
 				case ScFace::TYPE42:
 					t = ScFace(new ScFace_ttf(fam, sty, "", fullName, qpsName, filename, faceIndex, features));
-					getSFontType(face, t.m_m->typeCode);
+					getSubFontType(face, t.m_m->typeCode);
 					t.subset(Subset);
 					break;
 				default:




More information about the scribus-commit mailing list