Bug 60608 -- improve charset handling in Hwmf -- remove deprecated drawString(String...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1779613 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
93eb933aa6
commit
d9bce7fff9
@ -316,30 +316,10 @@ public class HwmfGraphics {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param text
|
|
||||||
* @param bounds
|
|
||||||
* @deprecated use {@link #drawString(byte[], Rectangle2D)}
|
|
||||||
*/
|
|
||||||
public void drawString(String text, Rectangle2D bounds) {
|
|
||||||
drawString(text, bounds, null);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void drawString(byte[] text, Rectangle2D bounds) {
|
public void drawString(byte[] text, Rectangle2D bounds) {
|
||||||
drawString(text, bounds, null);
|
drawString(text, bounds, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param text
|
|
||||||
* @param bounds
|
|
||||||
* @deprecated use {@link #drawString(byte[], Rectangle2D, int[])}
|
|
||||||
*/
|
|
||||||
public void drawString(String text, Rectangle2D bounds, int dx[]) {
|
|
||||||
drawString(text.getBytes(DEFAULT_CHARSET), bounds, dx);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void drawString(byte[] text, Rectangle2D bounds, int dx[]) {
|
public void drawString(byte[] text, Rectangle2D bounds, int dx[]) {
|
||||||
HwmfFont font = prop.getFont();
|
HwmfFont font = prop.getFont();
|
||||||
if (font == null || text == null || text.length == 0) {
|
if (font == null || text == null || text.length == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user