Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
This file is part of the iText (R) project.
Copyright (c) 1998-2023 Apryse Group NV
Authors: Apryse Software.
This program is offered under a commercial and under the AGPL license.
For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below.
AGPL licensing:
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
package com.itextpdf.layout.renderer.typography;
import com.itextpdf.commons.actions.contexts.IMetaInfo;
import com.itextpdf.commons.actions.sequence.SequenceId;
import com.itextpdf.io.logs.IoLogMessageConstant;
import com.itextpdf.io.font.FontProgram;
import com.itextpdf.io.font.TrueTypeFont;
import com.itextpdf.io.font.otf.GlyphLine;
import com.itextpdf.layout.properties.BaseDirection;
import com.itextpdf.layout.renderer.LineRenderer.RendererGlyph;
import java.io.IOException;
import java.lang.Character.UnicodeScript;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public final class DefaultTypographyApplier extends AbstractTypographyApplier {
private static final Logger LOGGER = LoggerFactory.getLogger(DefaultTypographyApplier.class);
public DefaultTypographyApplier() {
}
@Override
public boolean isPdfCalligraphInstance() {
return false;
}
@Override
public boolean applyOtfScript(TrueTypeFont font, GlyphLine glyphLine, UnicodeScript script, Object configurator,
SequenceId id, IMetaInfo metaInfo) {
LOGGER.warn(IoLogMessageConstant.TYPOGRAPHY_NOT_FOUND);
return super.applyOtfScript(font, glyphLine, script, configurator, id, metaInfo);
}
@Override
public Collection getSupportedScripts() {
LOGGER.warn(IoLogMessageConstant.TYPOGRAPHY_NOT_FOUND);
return super.getSupportedScripts();
}
@Override
public Collection getSupportedScripts(Object configurator) {
LOGGER.warn(IoLogMessageConstant.TYPOGRAPHY_NOT_FOUND);
return super.getSupportedScripts(configurator);
}
@Override
public boolean applyKerning(FontProgram fontProgram, GlyphLine text, SequenceId sequenceId, IMetaInfo metaInfo) {
LOGGER.warn(IoLogMessageConstant.TYPOGRAPHY_NOT_FOUND);
return super.applyKerning(fontProgram, text, sequenceId, metaInfo);
}
@Override
public byte[] getBidiLevels(BaseDirection baseDirection, int[] unicodeIds, SequenceId sequenceId,
IMetaInfo metaInfo) {
LOGGER.warn(IoLogMessageConstant.TYPOGRAPHY_NOT_FOUND);
return super.getBidiLevels(baseDirection, unicodeIds, sequenceId, metaInfo);
}
@Override
public int[] reorderLine(List line, byte[] lineLevels, byte[] levels) {
LOGGER.warn(IoLogMessageConstant.TYPOGRAPHY_NOT_FOUND);
return super.reorderLine(line, lineLevels, levels);
}
@Override
public List getPossibleBreaks(String str) {
LOGGER.warn(IoLogMessageConstant.TYPOGRAPHY_NOT_FOUND);
return super.getPossibleBreaks(str);
}
@Override
public Map loadShippedFonts() throws IOException {
LOGGER.warn(IoLogMessageConstant.TYPOGRAPHY_NOT_FOUND);
return super.loadShippedFonts();
}
}