public void drawString(Graphics g, CustomFont cf, String data){
        int centerX = x + width/2;
        int centerY = y + height/2;
        cf.paintString(g, data,centerX, centerY, Graphics.HCENTER | Graphics.VCENTER);
    }