code: public final int toPixel() {
          if (unit == FontSizeUnit.PIXEL) {
              return Math.round(size);
          }
          if (unit == FontSizeUnit.EM) {
              return Math.round(16 * size);
          }
          if (unit == FontSizeUnit.PERCENT) {
              return Math.round(size / 100 * 16);
          }
          if (unit == FontSizeUnit.POINT) {
              return Math.round(size / 3 * 4);
          }
          throw new IllegalStateException("Unknown unit: " + unit);
      }
docs: Returns the font size expressed in pixels.
  
  @return Pixels.