code: protected void applyStyle(TextFormatting format)
  	{
  		if (format == TextFormatting.RESET)
  		{
  			FontOptions fontOptions = styles.getFirst();
  			styles.clear();
  			styles.add(fontOptions);
  			return;
  		}
  
  		FontOptionsBuilder builder = currentStyle().toBuilder();
  		builder.styles(format);
  		styles.add(builder.build());
  	}
docs: Applies the {@link TextFormatting} as a new style.
  
  @param format the format