We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FreeTypeで文字を描画した時に,影・フチ用のぼかし指定が機能しておりません。 GDIFontRasterizer::GetBitmap()で「if(font.Blured) data->Blur();」相当の処理がFreeTypeFontRasterizer::GetBitmap()にないことが原因かと思われます。
動作確認サンプルスクリプト:
var win = new Window(); win.add(new Layer(win, null)); var lay = new Layer(win, win.primaryLayer); lay.setImageSize(200, 40); Font.rasterizer = frGDI; test(lay, "GDI", 2); Font.rasterizer = frFreeType; test(lay, "FreeType", 22); lay.saveLayerImage("shadowlevels.png", "png"); function test(lay, tag, oy) { with (lay) { .font.height = 16; .font.face = "MS ゴシック"; .drawText(2, oy, @"影ぼかしテスト(${tag})", 0xFFFF00, 255, true, /*shadowlevel*/1024, 0x000000, 2, 2, 2); } }
結果イメージ:
The text was updated successfully, but these errors were encountered:
https://github.com/krkrz/krkrz/tree/fix177 で修正。
Sorry, something went wrong.
本体へマージ
No branches or pull requests
FreeTypeで文字を描画した時に,影・フチ用のぼかし指定が機能しておりません。
GDIFontRasterizer::GetBitmap()で「if(font.Blured) data->Blur();」相当の処理がFreeTypeFontRasterizer::GetBitmap()にないことが原因かと思われます。
動作確認サンプルスクリプト:
結果イメージ:
The text was updated successfully, but these errors were encountered: