Dynamic Font Adjustment for Input Box Overflow
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In electronic equipment, when content exceeds the input box width, it overflows, and the display focus moves backwards, making interaction and content modification tedious and inconvenient due to incomplete display of entered content.
Innovation Solution
A method that adjusts the font size of the content dynamically based on the occupancy rate within the display region, generating a second display region with a larger area if the content cannot be fully displayed at the initial font size, ensuring all content is visible without the need for user intervention to move the display focus.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Loss of information
If content is entered in the first display region with initial font size, then the display focus remains at the current position, but the content overflows and cannot be completely displayed
Solution Approach 1:
The patent dynamically changes the font size parameter of the displayed content. When content overflow is detected in the first display region, the system automatically reduces the font size to fit all content within the same display region, eliminating the need for focus movement while maintaining complete content visibility
2Loss of information
If the font size is reduced to fit more content, then the content can be completely displayed, but the display quality and readability decrease
Solution Approach 1:
The patent implements dynamic font size adjustment based on content length and display region characteristics. The system continuously monitors content overflow and automatically adjusts font size in real-time, creating an adaptive display that optimizes both completeness and quality rather than using a fixed reduced font size
Solution Approach 2:
The patent segments the display strategy into two approaches: attempting to fit content in the first display region through font size adjustment, and alternatively expanding to a second display region when necessary. This segmentation allows the system to prioritize display quality by first trying to maintain the original display region with adjusted formatting
Data Source
AI summary
The present disclosure relates to a method, device and terminal for displaying content, and a medium, used for completely displaying content entered by a user when a content including many characters is entered in an input box, so as to avoid tedious operation when the user views the entered content which is not displayed. The method for displaying content of the present disclosure includes: receiving target content entered in a first display region; calculating an occupancy rate based on the target content and the first display region in real time; reducing a font size of the target content in response to that the occupancy rate satisfies a first condition; generating a second display region for displaying the target content in response to that the occupancy rate satisfies a second condition.


