Added support for font settings in PictureDataWriter. Not used yet
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20381 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -220,6 +220,96 @@ PictureDataWriter::WriteDrawBitmap(const BRect &srcRect, const BRect &dstRect, c
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
PictureDataWriter::WriteSetFontFamily(const font_family &family)
|
||||
{
|
||||
/*BeginOp(B_PIC_SET_FONT_FAMILY);
|
||||
Write(
|
||||
EndOp();*/
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
PictureDataWriter::WriteSetFontStyle(const font_style &style)
|
||||
{
|
||||
/*BeginOp(B_PIC_SET_FONT_STYLE);
|
||||
Write(
|
||||
EndOp();*/
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
PictureDataWriter::WriteSetFontSpacing(const int32 &spacing)
|
||||
{
|
||||
BeginOp(B_PIC_SET_FONT_SPACING);
|
||||
Write<int32>(spacing);
|
||||
EndOp();
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
PictureDataWriter::WriteSetFontSize(const float &size)
|
||||
{
|
||||
BeginOp(B_PIC_SET_FONT_SIZE);
|
||||
Write<float>(size);
|
||||
EndOp();
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
PictureDataWriter::WriteSetFontRotation(const float &rotation)
|
||||
{
|
||||
BeginOp(B_PIC_SET_FONT_ROTATE);
|
||||
Write<float>(rotation);
|
||||
EndOp();
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
PictureDataWriter::WriteSetFontEncoding(const int32 &encoding)
|
||||
{
|
||||
BeginOp(B_PIC_SET_FONT_ENCODING);
|
||||
Write<int32>(encoding);
|
||||
EndOp();
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
PictureDataWriter::WriteSetFontFlags(const int32 &flags)
|
||||
{
|
||||
BeginOp(B_PIC_SET_FONT_FLAGS);
|
||||
Write<int32>(flags);
|
||||
EndOp();
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
PictureDataWriter::WriteSetFontShear(const int32 &shear)
|
||||
{
|
||||
BeginOp(B_PIC_SET_FONT_SHEAR);
|
||||
Write<int32>(shear);
|
||||
EndOp();
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
PictureDataWriter::WriteSetFontFace(const int32 &face)
|
||||
{
|
||||
BeginOp(B_PIC_SET_FONT_FACE);
|
||||
Write<int32>(face);
|
||||
EndOp();
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
PictureDataWriter::WritePushState()
|
||||
{
|
||||
@@ -229,7 +319,6 @@ PictureDataWriter::WritePushState()
|
||||
}
|
||||
|
||||
|
||||
|
||||
status_t
|
||||
PictureDataWriter::WritePopState()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user