IP Library › Granted Patent US 11,699,022
Granted Patent B2
US 11,699,022 · App. 17/678,325 · Granted Jul 11, 2023

Method, equipment, and medium for displaying content

Inventor: Fang Li (Beijing, CN)
Assignee: Beijing Dajia Internet Information Technology Co., Ltd.
G06F40/109G06F3/04842G06F3/04847
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,699,022
App. No.
17/678,325
Granted
Jul 11, 2023
Kind
B2
Abstract

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.

Claims (61)

1. A method for displaying content, comprising:

receiving target content with a first font size entered in a first display region;

generating a second display region in response to determining that the target content is incapable of being completely displayed in the first display region, wherein an area of the second display region is larger than an area of the first display region; and

displaying the target content with a second font size in the second display region; wherein the second font size is smaller than or equal to the first font size.

2. The method according to claim 1 , said the target content being incapable of being completely displayed in the first display region comprises:

an occupancy rate of the target content with a first font size in the first display region is greater than a preset threshold.

3. The method according to claim 1 , said determining that the target content is incapable of being completely displayed in the first display region comprising:

reducing the first font size;

determining that the target content is incapable of being completely displayed in the first display region in response to that the target content with a reduced font size is incapable of being completely displayed.

4. The method according to claim 3 , wherein said reducing the first font size comprising:

reducing the first font size till a preset minimum font size.

5. The method according to claim 2 , further comprising:

calculating the occupancy rate based on at least one of:

a length of the target content and a length of the first display region;

an area of the target content and an area of the first display region; or

a character number of the target content and a preset character number of the first display region.

6. The method according to claim 3 , further comprising:

reducing the first font size in a fixed interval.

7. The method according to claim 1 , further comprising:

displaying the target content with the first font size in the first display region in response to determining that the target content is capable of being completely displayed in the first display region.

8. A terminal for displaying content, comprising:

a processor; and

a memory configured to store one or more instructions executed by the processor;

wherein the processor is configured to execute the instructions to:

receive target content with a first font size entered in a first display region;

generate a second display region in response to determining that the target content is incapable of being completely displayed in the first display region, wherein an area of the second display region is larger than an area of the first display region; and

display the target content with a second font size in the second display region; wherein the second font size is smaller than or equal to the first font size.

9. The terminal according to claim 8 , said the target content being incapable of being completely displayed in the first display region comprises:

an occupancy rate of the target content with a first font size in the first display region is greater than a preset threshold.

10. The terminal according to claim 8 , wherein the processor is further configured to:

reduce the first font size;

determine that the target content is incapable of being completely displayed in the first display region in response to that the target content with a reduced font size is incapable of being completely displayed.

11. The terminal according to claim 10 , wherein the processor is further configured to:

reduce the first font size till a preset minimum font size.

12. The terminal according to claim 9 , wherein the processor is further configured to:

calculate the occupancy rate based on at least one of:

a length of the target content and a length of the first display region;

an area of the target content and an area of the first display region; or

a character number of the target content and a preset character number of the first display region.

13. The terminal according to claim 10 , wherein the processor is further configured to:

reduce the first font size in a fixed interval.

14. The terminal according to claim 8 , wherein the processor is further configured to:

display the target content with the first font size in the first display region in response to determining that the target content is capable of being completely displayed in the first display region.

15. A non-transitory computer-readable storage medium, configured to store one or more instructions which are executed to cause a processor of a terminal for displaying content to:

receive target content with a first font size entered in a first display region;

generate a second display region in response to determining that the target content is incapable of being completely displayed in the first display region, wherein an area of the second display region is larger than an area of the first display region; and

display the target content with a second font size in the second display region; wherein the second font size is smaller than or equal to the first font size.

16. The non-transitory computer-readable storage medium according to claim 15 , said the target content being incapable of being completely displayed in the first display region comprises:

an occupancy rate of the target content with a first font size in the first display region is greater than a preset threshold.

17. The non-transitory computer-readable storage medium according to claim 15 , wherein the storage medium is further configured to store one or more instructions which are executed to cause the processor to:

reduce the first font size;

determine that the target content is incapable of being completely displayed in the first display region in response to that the target content with a reduced font size is incapable of being completely displayed.

18. The non-transitory computer-readable storage medium according to claim 17 , wherein the storage medium is further configured to store one or more instructions which are executed to cause the processor to:

reduce the first font size till a preset minimum font size.

19. The non-transitory computer-readable storage medium according to claim 16 , wherein the storage medium is further configured to store one or more instructions which are executed to cause the processor to:

calculate the occupancy rate based on at least one of:

a length of the target content and a length of the first display region;

an area of the target content and an area of the first display region; or

a character number of the target content and a preset character number of the first display region.

20. The non-transitory computer-readable storage medium according to claim 17 , wherein the storage medium is further configured to store one or more instructions which are executed to cause the processor to:

reduce the first font size in a fixed interval.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 20, 2022
From: LI, FANG
To: BEIJING DAJIA INTERNET INFORMATION TECHNOLOGY CO., LTD.
Reel/Frame 059968/0788 →
Priority Claims (1)
CN 201910826725.9 · Sep 3, 2019 · national
Continuity (2)
Continuation 17010673 · Sep 2, 2020
Related Publication 20220277132A1 · Sep 1, 2022