Home
last modified time | relevance | path

Searched refs:fromCoord (Results 1 – 4 of 4) sorted by relevance

/external/harfbuzz_ng/src/
Dhb-ot-var-avar-table.hh65 #define fromCoord coords[from_offset] in map() macro
75 return value - arrayZ[0].fromCoord + arrayZ[0].toCoord; in map()
78 if (value <= arrayZ[0].fromCoord) in map()
79 return value - arrayZ[0].fromCoord + arrayZ[0].toCoord; in map()
83 for (i = 1; i < count && value > arrayZ[i].fromCoord; i++) in map()
86 if (value >= arrayZ[i].fromCoord) in map()
87 return value - arrayZ[i].fromCoord + arrayZ[i].toCoord; in map()
89 if (unlikely (arrayZ[i-1].fromCoord == arrayZ[i].fromCoord)) in map()
92 int denom = arrayZ[i].fromCoord - arrayZ[i-1].fromCoord; in map()
95 (value - arrayZ[i-1].fromCoord) + denom/2) / denom; in map()
[all …]
/external/fonttools/Lib/fontTools/varLib/instancer/
D__init__.py874 for fromCoord, toCoord in sorted(segmentMap.items()):
927 for fromCoord, toCoord in mapping.items():
928 if fromCoord < 0:
929 if axisRange.minimum == 0 or fromCoord < axisRange.minimum:
932 fromCoord /= abs(axisRange.minimum)
933 elif fromCoord > 0:
934 if axisRange.maximum == 0 or fromCoord > axisRange.maximum:
937 fromCoord /= axisRange.maximum
946 fromCoord = floatToFixedToFloat(fromCoord, 14)
948 newMapping[fromCoord] = toCoord
/external/freetype/src/truetype/
Dttgxvar.h42 FT_Fixed fromCoord; member
Dttgxvar.c404 segment->correspondence[j].fromCoord = in ft_var_load_avar()
410 segment->correspondence[j].fromCoord / 65536.0, in ft_var_load_avar()
1882 if ( normalized[i] < av->correspondence[j].fromCoord ) in ft_var_to_normalized()
1887 FT_MulDiv( normalized[i] - av->correspondence[j - 1].fromCoord, in ft_var_to_normalized()
1890 av->correspondence[j].fromCoord - in ft_var_to_normalized()
1891 av->correspondence[j - 1].fromCoord ) + in ft_var_to_normalized()
1949 av->correspondence[j].fromCoord - in ft_var_to_design()
1950 av->correspondence[j - 1].fromCoord, in ft_var_to_design()
1953 av->correspondence[j - 1].fromCoord; in ft_var_to_design()