128 |
|
|
129 |
|
|
130 |
|
|
131 |
public float getHeight(int start, int end, float scale) { |
public float getAscent(int start, int end, float scale) { |
132 |
float h = 0; |
float h = 0; |
133 |
for(int i=start; i<end; i++) { |
for(int i=start; i<end; i++) { |
134 |
float curh = boxes[i].getHeight(scale); |
float curh = boxes[i].getHeight(scale); |
137 |
return h; |
return h; |
138 |
} |
} |
139 |
|
|
140 |
public float getDepth(int start, int end, float scale) { |
public float getDescent(int start, int end, float scale) { |
141 |
float d = 0; |
float d = 0; |
142 |
for(int i=start; i<end; i++) { |
for(int i=start; i<end; i++) { |
143 |
float curd = boxes[i].getDepth(scale); |
float curd = boxes[i].getDepth(scale); |
145 |
} |
} |
146 |
return d; |
return d; |
147 |
} |
} |
148 |
|
|
149 |
|
public float getHeight(int start, int end, float scale) { |
150 |
|
return getAscent(start, end, scale) + getDescent(start, end, scale); |
151 |
|
} |
152 |
|
|
153 |
|
|
154 |
|
|