Lines Matching refs:param
64 static void moveto (CFF2CSInterpEnv &env, ExtentsParam& param, const Point &pt) in moveto()
66 param.end_path (); in moveto()
70 static void line (CFF2CSInterpEnv &env, ExtentsParam& param, const Point &pt1) in line()
72 if (!param.is_path_open ()) in line()
74 param.start_path (); in line()
75 param.update_bounds (env.get_pt ()); in line()
78 param.update_bounds (env.get_pt ()); in line()
81 …static void curve (CFF2CSInterpEnv &env, ExtentsParam& param, const Point &pt1, const Point &pt2, … in curve()
83 if (!param.is_path_open ()) in curve()
85 param.start_path (); in curve()
86 param.update_bounds (env.get_pt ()); in curve()
89 param.update_bounds (pt1); in curve()
90 param.update_bounds (pt2); in curve()
92 param.update_bounds (env.get_pt ()); in curve()
110 ExtentsParam param; in get_extents() local
111 param.init (); in get_extents()
112 if (unlikely (!interp.interpret (param))) return false; in get_extents()
114 if (param.min_x >= param.max_x) in get_extents()
121 extents->x_bearing = (int32_t)param.min_x.floor (); in get_extents()
122 extents->width = (int32_t)param.max_x.ceil () - extents->x_bearing; in get_extents()
124 if (param.min_y >= param.max_y) in get_extents()
131 extents->y_bearing = (int32_t)param.max_y.ceil (); in get_extents()
132 extents->height = (int32_t)param.min_y.floor () - extents->y_bearing; in get_extents()