/*
- tfm.cc -- implement Tex_font_metric
+ tfm.cc -- implement Tex_font_metric
source file of the GNU LilyPond music typesetter
Box
Tex_font_char_metric::dimensions () const
{
+ if (!exists_b_)
+ {
+ Box b;
+ b.set_empty ();
+ return b;
+ }
+
Real d = -depth_;
return Box (Interval (0, width_),Interval ( d <? height_, d >? height_));
}
if (ascii < ascii_to_metric_idx_.size() && ascii_to_metric_idx_[ascii] >= 0)
return & char_metrics_[ascii_to_metric_idx_ [ascii]];
else if (warn)
-
{
warning (_f ("can't find ascii character %d", ascii));
}