Lines Matching refs:weight

37   function font_resolved($family, $weight, $style, $encoding) {  argument
40 isset($this->ps_fonts[$family][$weight]) and
41 isset($this->ps_fonts[$family][$weight][$style]) and
42 isset($this->ps_fonts[$family][$weight][$style][$encoding]);
51 function resolve_font($family, $weight, $style, $encoding) { argument
52 if (!$this->font_resolved($family, $weight, $style, $encoding)) {
53 $this->ps_fonts[$family][$weight][$style][$encoding] = 'font'.$this->ps_fonts_counter;
56 return $this->ps_fonts[$family][$weight][$style][$encoding];
105 function get_global_encoding_override($weight, $style, $encoding) { argument
106 return $this->get_family_encoding_override(" ", $weight, $style, $encoding);
109 function get_family_encoding_override($family, $weight, $style, $encoding) { argument
112 isset($this->overrides[$encoding][$family][$weight]) &&
113 isset($this->overrides[$encoding][$family][$weight][$style])) {
114 return $this->overrides[$encoding][$family][$weight][$style];
118 isset($this->overrides_mask[$family][$weight]) &&
119 isset($this->overrides_mask[$family][$weight][$style])) {
120 foreach ($this->overrides_mask[$family][$weight][$style] as $override) {
130 function have_global_encoding_override($weight, $style, $encoding) { argument
131 return $this->get_global_encoding_override($weight, $style, $encoding) !== "";
134 function have_family_encoding_override($family, $weight, $style, $encoding) { argument
135 return $this->get_family_encoding_override($family, $weight, $style, $encoding) !== "";
152 function get_typeface_name($family, $weight, $style, $encoding) { argument
154 return $this->get_typeface_name($this->aliases[$family], $weight, $style, $encoding);
158 if ($this->have_family_encoding_override($family, $weight, $style, $encoding)) {
159 return $this->get_family_encoding_override($family, $weight, $style, $encoding);
163 if ($this->have_global_encoding_override($weight, $style, $encoding)) {
164 return $this->get_global_encoding_override($weight, $style, $encoding);
168 if (!isset($this->families[$family][$weight])) { return "Times-Roman"; };
169 if (!isset($this->families[$family][$weight][$style])) { return "Times-Roman"; };
171 return $this->families[$family][$weight][$style];