Package org.axsl.font

Examples of org.axsl.font.Font.width()


     * @return The new progression dimension value, in millipoints.
     */
    private int recomputeProgressionDimension() {
        final CharSequence text = getText();
        final Font font = this.getPrimaryFont().getFont();
        final int pd = font.width(text, this.traitFontSize(), this.traitLetterSpacingOpt(),
                this.traitWordSpacingOpt(), true);
        return pd;
    }

    /**
 
View Full Code Here


     */
    public int getCharWidth(final int c) {
        final FontUse fontUse = getPrimaryFont();
        final Font font = getPrimaryFont().getFont();
        fontUse.registerCharUsed(c);
        return font.width(c, traitFontSize())
                + this.traitGeneratedBy().traitLetterSpacingOpt(this);
    }

    /**
     * {@inheritDoc}
 
View Full Code Here

     */
    public int getWordWidth(final CharSequence word) {
        final FontUse fontUse = getPrimaryFont();
        final Font font = fontUse.getFont();
        fontUse.registerCharsUsed(word);
        return font.width(word, traitFontSize(),
                traitGeneratedBy().traitLetterSpacingOpt(this),
                traitGeneratedBy().traitWordSpacingOpt(this), true);
    }

    /**
 
View Full Code Here

     */
    public int getWordWidth(final CharSequence word) {
        final FontUse fontUse = getPrimaryFont();
        final Font font = fontUse.getFont();
        fontUse.registerCharsUsed(word);
        return font.width(word, traitFontSize(),
                traitGeneratedBy().traitLetterSpacingOpt(this),
                traitGeneratedBy().traitWordSpacingOpt(this), true);
    }

    /**
 
View Full Code Here

     */
    public int getWordWidth(final CharSequence word) {
        final FontUse fontUse = getPrimaryFont();
        final Font font = fontUse.getFont();
        fontUse.registerCharsUsed(word);
        return font.width(word, traitFontSize(),
                traitGeneratedBy().traitLetterSpacingOpt(this),
                traitGeneratedBy().traitWordSpacingOpt(this), true);
    }

    /**
 
View Full Code Here

                && isLowerCase(codePoint)) {
            fontSize = lineText.inlineFauxSmallCapsFontSize();
            codePointToUse = java.lang.Character.toUpperCase((char) codePoint);
        }
        fontUse.registerCharUsed(codePointToUse);
        return font.width(codePointToUse, fontSize)
                + lineText.inlineLetterSpacingOptimum();
    }

    /**
     * Indicates whether a given Unicode code point should be considered to be
View Full Code Here

     */
    public int getWordWidth(final LineText lineText, final CharSequence word) {
        final FontUse fontUse = lineText.inlinePrimaryFont();
        final Font font = fontUse.getFont();
        fontUse.registerCharsUsed(word);
        return font.width(word,
                lineText.inlineFontSize(),
                lineText.inlineLetterSpacingOptimum(), 0, true);
    }

    /**
 
View Full Code Here

     */
    public int getWordWidth(final CharSequence word) {
        final FontUse fontUse = getPrimaryFont();
        final Font font = fontUse.getFont();
        fontUse.registerCharsUsed(word);
        return font.width(word, traitFontSize(),
                traitGeneratedBy().traitLetterSpacingOpt(this),
                traitGeneratedBy().traitWordSpacingOpt(this), true);
    }

    /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.