类 Subsetter
java.lang.Object
com.google.typography.font.tools.subsetter.Subsetter
- 直接已知子类:
RenumberingSubsetter
sfntly sample code demonstrating subsetting. Work in progress.
- 作者:
- Stuart Gill
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明(专用程序包) List<CMapTable.CMapId>
cmapId()
Get the inverse mapping, from new glyph id to old.getMap()
Get the permutation table of the old glyph id to the new glyph id.void
setCMaps
(List<CMapTable.CMapId> cmapIds, int number) Set the cmaps to be used in the subsetted font.void
void
setRemoveTables
(Set<Integer> removeTables) protected abstract void
setUpTables
(Font.Builder fontBuilder) subset()
-
字段详细资料
-
font
-
map
-
tableSubsetters
-
removeTables
-
newToOldGlyphs
-
cmapIds
-
oldToNewGlyphs
-
-
构造器详细资料
-
Subsetter
-
-
方法详细资料
-
setGlyphs
-
setCMaps
Set the cmaps to be used in the subsetted font. The cmaps are listed in order of priority and the number parameter gives a count of how many of the list should be put into the subsetted font. If there are no matches in the font for any of the provided cmap ids which would lead to a font with no cmap then an error will be thrown during subsetting. The two most common cases would be:-
a list of one or more cmap ids with a count setting of 1
This will use the list of cmap ids as an ordered priority and look for an available cmap in the font that matches the requests. Only the first such match will be placed in the subsetted font.-
a list of one or more cmap ids with a count setting equal to the list
length
This will use the list of cmap ids and try to place each one specified into the subsetted font.- 参数:
cmapIds
- the cmap ids to use for the subsetted fontnumber
- the maximum number of cmaps to place in the subsetted font
-
setRemoveTables
-
subset
- 抛出:
IOException
-
glyphMappingTable
Get the permutation table of the old glyph id to the new glyph id.- 返回:
- the permutation table
-
getInverseMapping
Get the inverse mapping, from new glyph id to old.- 返回:
- the inverse mapping
-
cmapId
List<CMapTable.CMapId> cmapId() -
setUpTables
-
getMap
- 返回:
- the map
-