e.setInnerText(((int) size) + "");
return e;
}
private void createFontFamilyButton(ToolbarView toolbar) {
SubmenuToolbarView submenu = toolbar.addSubmenu();
new ToolbarButtonViewBuilder()
.setIcon(css.fontFamily())
.applyTo(submenu, null);
submenu.setShowDropdownArrow(false); // Icon already has dropdown arrow.
createFontFamilyGroup(submenu.addGroup(), new FontFamily("Default", null));
createFontFamilyGroup(submenu.addGroup(),
new FontFamily("Sans Serif", "sans-serif"),
new FontFamily("Serif", "serif"),
new FontFamily("Wide", "arial black,sans-serif"),
new FontFamily("Narrow", "arial narrow,sans-serif"),
new FontFamily("Fixed Width", "monospace"));
createFontFamilyGroup(submenu.addGroup(),
new FontFamily("Arial", "arial,helvetica,sans-serif"),
new FontFamily("Comic Sans MS", "comic sans ms,sans-serif"),
new FontFamily("Courier New", "courier new,monospace"),
new FontFamily("Garamond", "garamond,serif"),
new FontFamily("Georgia", "georgia,serif"),