Setting font size in an unconstrained canvas
OwnerClément BONNET, Robin MÉLINANDinventors
Life of this patent
Estimating the term…
Abstract
Devices and methods for font size setting are disclosed. According to a method, in response to a typesetting input mode action detection, a handwriting input text (300) is recognized as multiple words defining at least one text block. A word base height for each recognized word of a text block is calculated. The word base height is calculated as an average base width of the recognized word, an average base height of the recognized word, or an average of the average base width and the average base height of the recognized word, depending on the number of characters of each word. A font size of the text block is calculated then as an average of the word base heights of the words of the text block.
Claims14
A method implemented by a computed device for font size setting, said method comprising:
- a. receiving, on an unconstrained canvas of an input area, handwriting input text;
- b. causing display of, on a display area, the handwriting input text;
- c. detecting, on the input area, a typesetting input mode action;
- d. recognizing, in response to the typesetting input mode action detection, the handwriting input text as multiple words defining at least one text block, each word comprising at least one character;
- e. defining a threshold or a range of numbers of characters;
- f. calculating a word base height for each recognized word of a text block, wherein the word base height is calculated as:
- i. an average, referred as average base width, of a base width of each character of the recognized word if a number of characters of the recognized word is above the threshold or the highest number of the range;
- ii. an average, referred as average base height, of a base height of each character of the recognized word if the number of characters of the recognized word is below the threshold or the lowest number of the range, wherein the base height of each character is a function of a character height of said character;
- iii. an average of the average base width and the average base height of the recognized word if the number of characters of the recognized word is equal to the threshold or within the range;
- and
- g. setting a font size, of the text block, based on an average of the respective word base heights of the words of the text block.
Computing device for font size setting, comprising:
- a. an input area configured to receive a handwriting input text on an unconstrained canvas;
- b. a display area configured to cause display of the handwriting input text;
- c. a typeset detection module configured to detect a typesetting input mode action on the input area;
- d. a recognition module configured to recognize, in response to the typesetting input mode action detection, the handwriting input text as multiple words defining at least one text block, each word comprising at least one character;
- e. a base height calculation module configured to select a threshold or a range of numbers of characters and to calculate a word base height for each recognized word of a text block, wherein the word base height is calculated as:
- i. an average, referred as average base width, of a base width of each character of the recognized word if a number of characters of the recognized word is above the threshold or the highest number of the range;
- ii. an average, referred as average base height, of a base height of each character of the recognized word if the number of characters of the recognized word is below the threshold or the lowest number of the range, wherein the base height of a character is a function of a character height of said character;
- iii. an average of the average base width and the average base height of the recognized word if the number of characters of the recognized word is equal to the threshold or within the range;
- f. a font size setting module configured to set a font size of the text block, wherein the font size is an average of the word base heights of the words of the text block.
Dependencies are inferred from the claim text.