21# include "config_auto.h"
45 :
baseline(spline_size, xstarts, coeffs), para_(nullptr) {
52 has_drop_cap_ =
false;
77 has_drop_cap_ =
false;
87 WERD_IT it(
const_cast<WERD_LIST *
>(&words));
88 for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) {
89 box += it.data()->restricted_bounding_box(upper_dots, lower_dots);
110 while (!it.at_first()) {
113 if (left < prev_left) {
123 for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) {
153 for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) {
154 it.data()->move(vec);
170 tprintf(
"Kerning= %d\n", kerning);
171 tprintf(
"Spacing= %d\n", spacing);
173 tprintf(
"Xheight= %f\n", xheight);
174 tprintf(
"Ascrise= %f\n", ascrise);
175 tprintf(
"Descdrop= %f\n", descdrop);
176 tprintf(
"has_drop_cap= %d\n", has_drop_cap_);
177 tprintf(
"lmargin= %d, rmargin= %d\n", lmargin_, rmargin_);
186#ifndef GRAPHICS_DISABLED
194 for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) {
196 word->
plot(window, colour);
212 for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) {
227 kerning = source.kerning;
228 spacing = source.spacing;
229 xheight = source.xheight;
230 bodysize = source.bodysize;
231 ascrise = source.ascrise;
232 descdrop = source.descdrop;
233 if (!words.empty()) {
236 baseline = source.baseline;
237 bound_box = source.bound_box;
238 has_drop_cap_ = source.has_drop_cap_;
239 lmargin_ = source.lmargin_;
240 rmargin_ = source.rmargin_;
241 para_ = source.para_;
void tprintf(const char *format,...)
int word_comparator(const void *word1p, const void *word2p)
TBOX restricted_bounding_box(bool upper_dots, bool lower_dots) const
ROW & operator=(const ROW &source)
void move(const ICOORD vec)
void plot(ScrollView *window, ScrollView::Color colour)
void recalc_bounding_box()
void print(FILE *fp) const
void move(const ICOORD vec)
void set_flag(WERD_FLAGS mask, bool value)
TBOX bounding_box() const
void plot(ScrollView *window, ScrollView::Color colour)
void operator=(const ELIST_LINK &)