--- nono/lib/bitmap.h 2026/04/29 17:05:26 1.1.1.5 +++ nono/lib/bitmap.h 2026/04/29 17:05:30 1.1.1.6 @@ -27,6 +27,11 @@ class BitmapBase public: virtual ~BitmapBase(); + // コピーコンストラクタ + BitmapBase(const BitmapBase& src); + // コピー代入演算子 + BitmapBase& operator=(const BitmapBase& src); + // サイズを指定してキャンバスを作成。 void Create(uint width_, uint height_) { Create(width_, height_, NULL); @@ -76,6 +81,11 @@ class BitmapI1 : public BitmapBase ~BitmapI1() override; uint8 *GetPtr(int x, int y) const override; + + // このビットマップ(フォント)をボールドにした新しいビットマップを返す。 + BitmapI1 ConvertToBold() const; + // このビットマップ(フォント)をイタリックにした新しいビットマップを返す。 + BitmapI1 ConvertToItalic() const; }; // 8bpp ビットマップ