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
- Prepare measured font or typeset-layout values and the explicit design policy requested. For text or font bytes, use the supported syntax explained below.
- Enter dropCapLineCount, bodyBaselineStepPx, bodyCapHeightPx, dropCapCapHeightRatio using the field table and calculation rules, then run the tool.
- Read targetDropCapInkHeightPx, requiredDropCapEmSizePx. The explanation below defines the units, signs, ordering and any flags or placeholder values.
- 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 field | Meaning | Value type; see rules below | Requirement |
|---|---|---|---|
| dropCapLineCount | Drop cap line count | number | Required |
| bodyBaselineStepPx | Body baseline step px | number | Required |
| bodyCapHeightPx | Body cap height px | number | Required |
| dropCapCapHeightRatio | Drop cap cap height ratio | number | Required |
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 field | Meaning | Value type |
|---|---|---|
| targetDropCapInkHeightPx | Target drop cap ink height px | number |
| requiredDropCapEmSizePx | Required drop cap em size px | number |
{
"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
-
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.