ZenScript main repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DFontMetrics.java 505B

1234567891011121314151617181920212223242526
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package org.openzen.drawablegui;
  7. /**
  8. *
  9. * @author Hoofdgebruiker
  10. */
  11. public interface DFontMetrics {
  12. int getAscent();
  13. int getDescent();
  14. int getLeading();
  15. int getWidth(String str);
  16. int getWidth(String str, int offset, int length);
  17. default int getLineHeight() {
  18. return getAscent() + getDescent();
  19. }
  20. }