fn spacing(&self, rhs: &Self) -> u16 {
        if let Some(ls) = self.line_spacing {
            ls
        } else {
            // NTCIP 1203 fontLineSpacing:
            // "The number of pixels between adjacent lines
            // is the average of the 2 line spacings of each
            // line, rounded up to the nearest whole pixel."
            let ps = rhs.font_spacing;
            let fs = self.font_spacing;
            ((ps + fs) >> 1) + ((ps + fs) & 1)
        }
    }
/// Get the spacing between two text lines.
Get the spacing between two text lines.
Get the spacing between two text lines .
fn spacing(&self, rhs: &Self) -> u16 {
        if let Some(ls) = self.line_spacing {
            ls
        } else {
            // NTCIP 1203 fontLineSpacing:
            // "The number of pixels between adjacent lines
            // is the average of the 2 line spacings of each
            // line, rounded up to the nearest whole pixel."
            let ps = rhs.font_spacing;
            let fs = self.font_spacing;
            ((ps + fs) >> 1) + ((ps + fs) & 1)
        }
    }
fn spacing ( & self , rhs : & Self ) -> u16 { if let Some ( ls ) = self . line_spacing { ls } else { // NTCIP 1203 fontLineSpacing: // "The number of pixels between adjacent lines // is the average of the 2 line spacings of each // line, rounded up to the nearest whole pixel." let ps = rhs . font_spacing ; let fs = self . font_spacing ; ( ( ps + fs ) >> 1 ) + ( ( ps + fs ) & 1 ) } }
Get the spacing between two text lines.
Get the spacing between two text lines .
&self
rhs
&Self