Drop Cap Lines Height Span

Align drop-cap ink top to body cap top over N−1 baseline intervals and derive em from actual cap-height ratio; not N times line-height or a recommended drop-cap size.

Description

A drop cap spanning N lines reaches across N−1 baseline intervals plus the body cap height.

A drop cap spanning N lines reaches across N−1 baseline intervals plus the body cap height. Its font size also depends on its cap-height ratio.1

Enter positive integer lines, positive step/cap height and cap ratio strictly positive through two. Return target ink height and required em-size pixels.

When to use Drop Cap Lines Height Span

Use Drop Cap Lines Height Span when you need to evaluate the supplied records under the calculation and evidence rules below. No wrapping, baseline placement or preferred drop-cap style is generated.

Prepare measured font or typeset-layout values and the explicit design policy requested. For text or font bytes, use the supported syntax explained below.

How to use Drop Cap Lines Height Span and understand its results

  1. Prepare measured font or typeset-layout values and the explicit design policy requested. For text or font bytes, use the supported syntax explained below.
  2. Enter dropCapLineCount, bodyBaselineStepPx, bodyCapHeightPx, dropCapCapHeightRatio using the field table and calculation rules, then run the tool.
  3. Read targetDropCapInkHeightPx, requiredDropCapEmSizePx. The explanation below defines the units, signs, ordering and any flags or placeholder values.
  4. If the tool reports an input issue, correct the values and run it again. Apply the stated assumptions when interpreting a successfully returned result.
Input fieldMeaningValue type; see rules belowRequirement
dropCapLineCountDrop cap line countnumberRequired
bodyBaselineStepPxBody baseline step pxnumberRequired
bodyCapHeightPxBody cap height pxnumberRequired
dropCapCapHeightRatioDrop cap cap height rationumberRequired

Enter positive integer lines, positive step/cap height and cap ratio strictly positive through two. Return target ink height and required em-size pixels.

inkHeight=(N−1)baselineStep+bodyCapHeight; emSize=inkHeight/capRatio

Units, indexing, boundary conditions and exceptional cases are defined in the calculation rules above.

Output fieldMeaningValue type
targetDropCapInkHeightPxTarget drop cap ink height pxnumber
requiredDropCapEmSizePxRequired drop cap em size pxnumber
json
{
  "input": {
    "dropCapLineCount": 3,
    "bodyBaselineStepPx": 20,
    "bodyCapHeightPx": 10,
    "dropCapCapHeightRatio": 0.7
  },
  "output": {
    "targetDropCapInkHeightPx": 50,
    "requiredDropCapEmSizePx": 71.42857142857143
  }
}

Limitations and assumptions

No wrapping, baseline placement or preferred drop-cap style is generated.

Numeric inputs, where present, must be finite. Follow the calculation-specific rules for overflow, underflow and exceptional cases. Missing required fields, extra fields, wrong value types and violations of the calculation rules are input errors.

Alternative or Complementary methods

Use Baseline Grid Align Checker: A baseline grid has an origin and step. Residuals show how observed baselines depart from their nearest grid positions. For a complementary task, use Inline Code Monospace x-Height Match: Matching inline code to body x-height requires independent metrics from both fonts. Equal x-height does not imply equal weight or baselines.

References

  1. Drop Cap Lines Height Span — tool.io

Similar or alternative tools

  • Baseline Grid Align Checker

    A baseline grid has an origin and step. Residuals show how observed baselines depart from their nearest grid positions.

  • Inline Code Monospace x-Height Match

    Matching inline code to body x-height requires independent metrics from both fonts. Equal x-height does not imply equal weight or baselines.

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies