Returns the width of a certain character of this font.

@param		character	a certain character
@return		a width in Text Space
190903
float width(int character) {
        if (image == null)
            return font.getWidthPoint(character, size) * hScale;
        else
            return image.getScaledWidth();
    }
1233642
public static String getCharacterName(char character) {
		String transliterated = transliterator.transliterate(String.valueOf(character));
		// returns strings in the for of SEMICOLON}
		return transliterated.substring("\\N{".length(),transliterated.length()-"}".length());
	}
209602
public float getStringWidth(String text, FontOptions options)
	{
		if (StringUtils.isEmpty(text))
			return 0;

		StringWalker walker = new StringWalker(text, options);
		walker.walkToEnd();
		return walker.width();
	}
408942
def string_width(string, font_size)
      font_scale = font_size / 10.0
      string.count(Worksheet::THIN_CHARS) * font_scale
    end
861324
function getPadding(str, width) {
  const spaceLen = (typeof width === 'undefined' ? 30 : width) - str.length;
  let padding = '';

  padding += '  ';
  for (let i = 2; i < spaceLen; i += 1) {
    padding += '-';
  }
  padding += '  ';
  return padding;
}
561089
def pad_char(text: str, width: int, char: str = '\n') -> str:
    """"""
    dis = width - len(text)
    if dis < 0:
        raise ValueError
    if dis > 0:
        text += char * dis
    return text
363606
protected int getTextFontHeight(byte textType) {
		FontMetrics fontMetrics = g2.getFontMetrics(getTextFont(textType));
		return fontMetrics.getHeight();
	}
1079091
public static Font getFont (Font font, int style, Size size) {
		return getFont(font, size).deriveFont(style);
	}
343733
def _visible_width(s):
    
    # optional wide-character support
    if wcwidth is not None and WIDE_CHARS_MODE:
        len_fn = wcwidth.wcswidth
    else:
        len_fn = len
    if isinstance(s, _text_type) or isinstance(s, _binary_type):
        return len_fn(_strip_invisible(s))
    else:
        return len_fn(_text_type(s))
210406
public java.lang.String getWidth() {
        return (java.lang.String) getStateHelper().eval(PropertyKeys.width);

    }
295239
function get_text_width($text, $font, $size, $word_spacing = 0, $letter_spacing = 0) {
    $fh = $this->_load_font($font);

    // Determine the additional width due to extra spacing
    $num_spaces = mb_substr_count($text," ");
    $delta = $word_spacing * $num_spaces;
    
    if ( $letter_spacing ) {
      $num_chars = mb_strlen($text);
      $delta += ($num_chars - $num_spaces) * $letter_spacing;
    }
    
    return $this->_pdf->stringwidth($text, $fh, $size) + $delta;
  }
121484
public float getWidthPoint() {
		if (getImage() != null) {
			return getImage().getScaledWidth();
		}
		return font.getCalculatedBaseFont(true).getWidthPoint(getContent(),
				font.getCalculatedSize())
				* getHorizontalScaling();
	}
1068582
public static int getDBLength(String str, int n) {
		if (str == null) {
			return 0;
		}

		char[] chars = str.toCharArray();
		int len = 0;

		for (int i = 0; i < chars.length; i++) {
			if (Character.UnicodeBlock.of(chars[i]) == Character.UnicodeBlock.BASIC_LATIN) {
				len++;
			} else {
				len += n;
			}
		}

		return len;
	}
605922
public float getTextSize(byte field) {
		FieldInfos fi = getFieldInfos(field);
		if (fi.m_fontSizeUnit.equals(SizeUnit.PT))
			return fi.m_fontSize;
		else
			return getDefaultTextSize() * (fi.m_fontSize/100f);
	}
405994
public float adjustWidth(float width) {
    // Canvas.measureText does not account for the extra width consumed by italic characters, so we
    // fudge in a fraction of an em and hope the font isn't too slanted
    switch (font.style) {
    case ITALIC:      return width + emwidth/8;
    case BOLD_ITALIC: return width + emwidth/6;
    default:          return width; // nada
    }
  }
1185712
def get_char(self, offset=0):
        """"""
        if not self.has_space(offset=offset):
            return ''

        return self.string[self.pos + offset]
346994
def fontChar(self, font, char):
        
        font_files = self._getCharFont(self._getFont(font), char)
        print('The character is {0}present in this font.'.format('' if font_files else 'not '))