@Test public void resolveHorizontalAndVerticalScaling() throws IOException { t.getCSS().put("xfa-font-vertical-scale", "75pt"); assertEquals(1, c.getHorizontalScaling(), 0); t.getCSS().put("xfa-font-horizontal-scale", "75%"); c = applier.apply(c, t); assertEquals(0.75f, c.getHorizontalScaling(), 0); t.getCSS().put("xfa-font-vertical-scale", "75%"); c = applier.apply(c, t); assertEquals(9, c.getFont().getSize(), 0); assertEquals(100 / 75f, c.getHorizontalScaling(), 0); }
public Chunk apply(final Chunk c, final Tag t) { return apply(c, t, null, null, null); }
ChunkCssApplier implements CssApplier<Chunk> { public Chunk apply(final Chunk c, final Tag t) { return apply(c, t, null, null, null); } }
ChunkCssApplier implements CssApplier<Chunk> { public Chunk apply(final Chunk c, final Tag t) { return apply(c, t, null, null, null); } ChunkCssApplier();  ChunkCssApplier(FontProvider fontProvider); }
ChunkCssApplier implements CssApplier<Chunk> { public Chunk apply(final Chunk c, final Tag t) { return apply(c, t, null, null, null); } ChunkCssApplier();  ChunkCssApplier(FontProvider fontProvider); Chunk apply(final Chunk c, final Tag t); Chunk apply(final Chunk c, final Tag t, final MarginMemory mm, final PageSizeContainable psc, final HtmlPipelineContext ctx); Font applyFontStyles(final Tag t); float getWidestWord(final Chunk c); void copyChunkStyles(final Chunk source, final Chunk target); FontProvider getFontProvider(); void setFontProvider(FontProvider fontProvider); }
ChunkCssApplier implements CssApplier<Chunk> { public Chunk apply(final Chunk c, final Tag t) { return apply(c, t, null, null, null); } ChunkCssApplier();  ChunkCssApplier(FontProvider fontProvider); Chunk apply(final Chunk c, final Tag t); Chunk apply(final Chunk c, final Tag t, final MarginMemory mm, final PageSizeContainable psc, final HtmlPipelineContext ctx); Font applyFontStyles(final Tag t); float getWidestWord(final Chunk c); void copyChunkStyles(final Chunk source, final Chunk target); FontProvider getFontProvider(); void setFontProvider(FontProvider fontProvider); static final List<String> BOLD; }