質問編集履歴
3
タイトルを修正
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
faceを変更すると文字が表示されなくる原因が知りたい。
|
1
|
+
FreeTypeライブラリ faceを変更すると文字が表示されなくる原因が知りたい。
|
body
CHANGED
File without changes
|
2
提示コードを修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -149,13 +149,14 @@
|
|
149
149
|
//フォントサイズ変更
|
150
150
|
if (fontSize != size)
|
151
151
|
{
|
152
|
-
|
152
|
+
|
153
|
-
std::cout << fontName << std::endl;
|
154
153
|
FT_Set_Pixel_Sizes(face, 0, fontSize); //ピクセルサイズを指定
|
155
154
|
}
|
156
155
|
|
157
156
|
if ( (fontName != std::string(font)) && (font != NULL) )
|
158
157
|
{
|
158
|
+
fontName = std::string(font); //フォント変更
|
159
|
+
std::cout << fontName << std::endl;
|
159
160
|
fontName = font; //フォント変更
|
160
161
|
///////////////////////////////////////////////////////////////////////////////////////
|
161
162
|
//フェイス作成
|
1
文章を修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -149,7 +149,7 @@
|
|
149
149
|
//フォントサイズ変更
|
150
150
|
if (fontSize != size)
|
151
151
|
{
|
152
|
-
|
152
|
+
fontName = std::string(font); //フォント変更
|
153
153
|
std::cout << fontName << std::endl;
|
154
154
|
FT_Set_Pixel_Sizes(face, 0, fontSize); //ピクセルサイズを指定
|
155
155
|
}
|