Text Border Alignment Using Font Metrics and Stylized Corners
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing desktop publishing applications struggle to precisely and reliably position borders and background shading relative to textual content, leading to unwanted visual distractions and inconsistencies due to glyph-dependent positioning, gaps, and the inability to apply stylized corners.
Innovation Solution
Techniques for aligning border edges and shading boundaries with font characteristics, such as ascent, descent, and embox edges, and allowing user-defined positioning and stylized corner application, ensuring consistent and precise border and shading effects.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If border edges and shading boundaries are positioned based on glyph shape, then the borders adapt to text content, but the positioning becomes inconsistent and produces visual artifacts
Solution Approach 1:
The border positioning system is segmented into multiple reference options (ascent line, descent line, baseline, embox edge) that can be independently selected for different borders and shading regions. This allows precise control over how each border relates to the text content without being constrained by glyph shape variations.
Solution Approach 2:
The system changes the reference parameter from glyph-dependent positioning to font-metric-based positioning. By using fixed font metrics (ascent, descent, baseline, embox) as reference lines, the border positioning becomes consistent and predictable while still adapting to different text content through the selected reference type.
2Reliability
If border positioning is based on first and last line glyphs, then the borders encompass the text, but gaps and overlaps occur due to glyph shape variations
Solution Approach 1:
The border positioning is segmented into independent reference lines (ascent line, descent line, baseline) that can be applied to different edges of the border and shading region. This allows precise control over the relationship between borders and text content, eliminating gaps and overlaps caused by glyph shape variations.
Solution Approach 2:
The system automatically determines the appropriate reference line and positioning based on the selected border type and text content, without requiring manual adjustment. The font metrics self-adjust to accommodate different fonts and text content while maintaining consistent border positioning.
3Device complexity
If traditional border positioning is used, then the implementation is simple, but stylized corners cannot be applied to shading regions
Solution Approach 1:
The corner positioning is segmented into separate controllable elements that can be independently applied to each corner of the shading region. Multiple stylized corner types (rounded, beveled, fancy) can be selected and applied to different corners, providing versatility while maintaining a relatively simple implementation through the use of standard graphic rendering techniques.
Data Source
AI summary
Disclosed herein are various techniques for more precisely and reliably (a) positioning top and bottom border edges relative to textual content, (b) positioning left and right border edges relative to textual content, (c) positioning mixed edge borders relative to textual content, (d) positioning boundaries of a region of background shading that fall within borders of textual content, (e) positioning borders relative to textual content that spans columns, (f) positioning respective borders relative to discrete portions of textual content, (g) positioning collective borders relative to discrete, abutting portions of textual content, (h) applying stylized corner boundaries to a region of background shading, and (i) applying stylized corners to borders.


