Giter VIP home page Giter VIP logo

Comments (7)

miahmie avatar miahmie commented on May 20, 2024

GDIの1回目でも最下段から3つ上にある「Bookshelf Symbol 7」の「l」が半透明になっているっぽい感じですね

from krkrz.

jin1016 avatar jin1016 commented on May 20, 2024

半透明は 65階調と256階調の判別とフォントキャッシュに何か問題がありそうですね。

from krkrz.

miahmie avatar miahmie commented on May 20, 2024

なるほど,キャッシュ関係は怪しそうですね。
GDI1回目で他にも
・「L」ucidia Console
・Micr「o」s「o」ft Yi Baiti
・Cordia N「e」w
・Mool「B」oran
・L「e」v「e」nim MT
あたりもおかしいっぽい感じです。

from krkrz.

jin1016 avatar jin1016 commented on May 20, 2024

GDIFontRasterizer::GetBitmap 内で階調初期化漏れがあった。
その未初期化値を参照して、256かそれ以外かの判定を行っていたため、多くの場合は256以外と判定されていたが、FreeType を使うと 256 と初期化され、その後キャッシュ解放し、再確保すると同じ位置に割り当てられる可能性が高く、未初期化値が 256 となっているケースが多くなり、半透明(65階調のデータを256階調)で描画されてしまっていた。
GDIFontRasterizer::GetBitmap 内で適切に 65 階調と設定することで修正される。

from krkrz.

miahmie avatar miahmie commented on May 20, 2024

手元でコンパイルして修正されていることを確認しました。
「その他気になった点」は一旦閉じてissueをそれぞれ分けて登録したほうが良いでしょうか?

from krkrz.

jin1016 avatar jin1016 commented on May 20, 2024

はい、別件で上げてください。

from krkrz.

miahmie avatar miahmie commented on May 20, 2024

了解です。ではこの件はcloseします。

from krkrz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.