201020812 ·· 九、發明說明: . 【發明所屬之技術領域】 本發明涉及一種字體縮放的方法,尤指一種屏幕字 體縮放的方法。 【先前技術】 隨著科技的進步,各種行動終端的使用越來越普 及,因此人與行動終端之間的交互越來越重要。 習知的行動終端通常具有一顯示屏幕,該屏幕上顯 ❹ 示的文字字體的大小通常都是固定不變的,對於老年 人、視力較差的人來說,當屏幕上顯示的文字字體較小 時,需要將眼睛靠近行動終端才可以看清楚屏幕上顯示 的文字,使用很不方便。因此,發明一種能夠根據用戶 的閱讀距離自動調整屏幕上字體大小的方法就變得尤為 重要。 【發明内容】 鑒於以上内容,有必要提供一種能夠根據用戶的閱 讀距離自動調整屏幕上字體大小的屏幕字體縮放的方 法。 一種屏幕字體縮放的方法,包括以下步驟:建立一 閱讀距離與字體大小的對應關係表,閱讀距離越小,字 體越大;測量一用戶與一屏幕之間的閱讀距離;及根據 測量的閱讀距離,從該對應關係表中找出對應的字體大 小,並在該屏幕上顯示對應字體大小的文字。 相較於習知技術,本發明屏幕字體縮放的方法能夠 5 201020812 -· 根據用戶的閱讀距離自動調整屏幕顯示的文字字體大 . 小,當用戶靠近屏幕時,屏幕上顯示的文字字體會自動 變大,且用戶可根據自己的需求設置正常閱讀距離觀看 時最舒適的字體大小,尤其對於老年人與視力較差的人 來說,使用時更加方便實用。 【實施方式】 請參閱圖1,本發明屏幕字體縮放的方法較佳實施 方式可用於一行動終端10中,該行動終端10内存儲有 ❹ 一文字庫,該行動終端10具有一可顯示該文字庫中的 文字的顯示屏幕11。該行動終端10内還裝設有一距離 測量裝置,該距離測量裝置可利用習知技術中的距離測 量技術,包括超聲波測距技術、紅外線測距技術、鐳射 測距技術等測量技術測量出用戶的眼睛與行動終端10 的屏幕11之間的距離。 使用該行動終端10前,需先在該文字庫中設置複 數文字字體FI,F2,F3,……,Fn,其中,F1字體最 小,Fn字體最大。假設用戶使用行動終端10的正常閱 讀距離X為20釐米(cm)時,則將文字字體F1設置 為對應於閱讀距離20cm時的字體大小,如設置為5號 字體。 請參閱圖2,當用戶的閱讀距離改變時,例如每靠 近屏幕11 一定距離(如5cm),字體將增大1號,如圖 2所示,當用戶的閱讀距離X變為15cm時,屏幕11 上顯示的字體將會增大1號。因此用戶的閱讀距離X與 6 201020812 字體大小的對應關係表如下所示: 距離 (cm) X^20 15^X< 20 10^X< 15 5^X< 10 X<5 字體 F1 F2 F3 F4 F5 以上所述的設置中,將20cm設置為正常閱讀距 離,並同時選擇了正常閱讀距離時對應的字體大小F1。 對於老年人與視力較差的人來說,也可重新設置正常閱 ❿ 讀距離,並同時選擇一種較大的字體作為正常閱讀距離 時對應的字體大小。 請參閱圖3,當用戶想根據自己的需求對行動終端 10的字體進行初始設置時,包括以下步驟: S101 :進入行動終端10的字體設置模組; S102:選擇一種字體,並顯示一對應該字體大小的 文字; 5103 :用戶以自己的正常閱讀距離觀看行動終端 10的屏幕11上顯示的文字,判斷該字體大小是否合 適;如果合適,進入下一步S104 ;如果不合適,轉入 步驟S102; 5104 :用戶保存選擇字體的字體設置。 請參閱圖4,本發明屏幕字體縮放的方法較佳實施 方式包括以下步驟: S201 ··根據用戶的字體設置建立閱讀距離與字體大 小之間的對應關係表,當用戶的閱讀距離越近,字體越 201020812 大 S202:藉由距離測量裝置測量用戶的閱讀距離 用戶的眼睛與行動終端的屏幕11之間的距離; 咖:根卿量得到的_轉,從對應關 找出對應的字體大小,· 中 謝:將行鱗端1G顯示的文字字_整為根據 用戶的閱讀距離得出的字體大小,當用戶處於正常閱^ 距離時,屏幕11上顯示的文字大小與用戶設置的2 =小相同’當用戶靠近屏幕u時,屏幕u上顯示 子大小會自動變大。 J又 本發明屏幕字體縮放的方法能夠根據用戶的 距離自動調整行祕端1G的屏幕_示的文字字體1 小’當用戶靠近屏幕11時,屏幕11上顯示的文字字體 會自動變大’^用戶可根據自己的需求設置觀看時 ❿ 適的字體大小’尤其對於老年人與視力較差的人來 使用時更加方便實用。 β 綜上所述,本發明係合乎發明專利申請條件,爰依 法提出專利申請。惟’以上所述僅為本發明之較佳實施 例,舉凡熟悉本案技藝之人士其所爰依本案之創作精神 所作之等效修飾或變化,皆應涵蓋於以下之申請專利 圍内。 Θ & 【圖式簡單說明】 圖1係本發明屏幕字體縮放的方法較佳實施方式應用 於行動終端中的一示意圖。 8 201020812 圖2係本發明屏幕字體縮放的方法較佳實施方式應用 於行動終端中的另一狀態示意圖。 圖3係本發明屏幕字體縮放的方法中用戶進行字體設 置的流程圖。 圖4係本發明屏幕字體縮放的方法較佳實施方式的流 程圖。 【主要元件符號說明】 行動終端 10 屏幕 11201020812 ·· Nine, invention description: 1. Technical Field of the Invention The present invention relates to a method for font scaling, and more particularly to a method for scaling a screen font. [Prior Art] With the advancement of technology, the use of various mobile terminals is becoming more and more popular, so the interaction between humans and mobile terminals is becoming more and more important. The conventional mobile terminal usually has a display screen, and the size of the displayed text font on the screen is usually fixed. For the elderly and the poorly-sighted person, when the text displayed on the screen is small, the font is small. When you need to close your eyes to the mobile terminal, you can see the text displayed on the screen, which is very inconvenient to use. Therefore, it has become more important to invent a method of automatically adjusting the font size on the screen according to the reading distance of the user. SUMMARY OF THE INVENTION In view of the above, it is necessary to provide a method of screen font scaling capable of automatically adjusting the font size on a screen according to a user's reading distance. A method for scaling a screen font, comprising the steps of: establishing a correspondence table between a reading distance and a font size, the smaller the reading distance, the larger the font; measuring the reading distance between a user and a screen; and the reading distance according to the measurement Find the corresponding font size from the correspondence table, and display the text corresponding to the font size on the screen. Compared with the prior art, the method for zooming the screen font of the present invention can be 5 201020812 -· automatically adjust the font font displayed on the screen according to the reading distance of the user. When the user is close to the screen, the font font displayed on the screen will automatically change. Large, and users can set the normal reading distance according to their needs, the most comfortable font size, especially for the elderly and people with poor eyesight, it is more convenient and practical to use. [Embodiment] Referring to FIG. 1 , a preferred embodiment of a method for scaling a screen font of the present invention can be used in a mobile terminal 10, wherein the mobile terminal 10 stores a font library, and the mobile terminal 10 has a font library that can be displayed. The display screen 11 of the text in the text. The mobile terminal 10 is further provided with a distance measuring device, which can measure the user's using the distance measuring technology in the prior art, including ultrasonic ranging technology, infrared ranging technology, and laser ranging technology. The distance between the eye and the screen 11 of the mobile terminal 10. Before using the mobile terminal 10, it is necessary to first set a plural text font FI, F2, F3, ..., Fn in the font, wherein the F1 font is the smallest and the Fn font is the largest. Assuming that the normal reading distance X of the user using the mobile terminal 10 is 20 cm (cm), the text font F1 is set to a font size corresponding to a reading distance of 20 cm, such as a font of size 5. Referring to FIG. 2, when the reading distance of the user changes, for example, a certain distance (such as 5 cm) near the screen 11, the font will increase by 1, as shown in FIG. 2, when the reading distance X of the user becomes 15 cm, the screen The font displayed on 11 will increase by 1. Therefore, the correspondence table between the user's reading distance X and 6 201020812 font size is as follows: Distance (cm) X^20 15^X< 20 10^X< 15 5^X< 10 X<5 Font F1 F2 F3 F4 F5 In the above-mentioned settings, 20 cm is set as the normal reading distance, and the font size F1 corresponding to the normal reading distance is also selected. For the elderly and those with poor eyesight, you can also reset the normal reading distance and select a larger font as the corresponding font size for the normal reading distance. Referring to FIG. 3, when the user wants to initially set the font of the mobile terminal 10 according to his own needs, the following steps are included: S101: enter the font setting module of the mobile terminal 10; S102: select a font and display a pair of should Font size text; 5103: the user sees the text displayed on the screen 11 of the mobile terminal 10 at his normal reading distance, determines whether the font size is appropriate; if appropriate, proceeds to the next step S104; if not, proceeds to step S102; 5104: The user saves the font settings of the selected font. Referring to FIG. 4, a preferred embodiment of the method for zooming the screen font of the present invention includes the following steps: S201 · Establish a correspondence table between the reading distance and the font size according to the font setting of the user. When the reading distance of the user is closer, the font is The more 201020812 is large S202: the distance between the user's eyes and the screen 11 of the mobile terminal is measured by the distance measuring device; the coffee: the root of the amount obtained by the _ turn, from the corresponding level to find the corresponding font size, In the Xie: the text word displayed by the 1G of the line scale is the font size obtained according to the reading distance of the user. When the user is in the normal reading distance, the size of the text displayed on the screen 11 is the same as the 2 = small set by the user. 'When the user approaches the screen u, the display sub-size on the screen u will automatically increase. J also has the method of screen font scaling according to the invention, which can automatically adjust the screen of the secret terminal 1G according to the distance of the user. _ The text font 1 is small. When the user approaches the screen 11, the font font displayed on the screen 11 will automatically become larger. Users can set the appropriate font size for viewing according to their own needs', especially for the elderly and people with poor eyesight. In summary, the present invention is in accordance with the conditions of the invention patent application, and the patent application is filed according to the law. However, the above description is only the preferred embodiment of the present invention, and equivalent modifications or variations made by those skilled in the art to the spirit of the present invention should be included in the following patent application. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram of a preferred embodiment of a method for scaling a screen font of the present invention applied to a mobile terminal. 8 201020812 FIG. 2 is a schematic diagram of another state in which a preferred embodiment of the screen font scaling method of the present invention is applied to a mobile terminal. Fig. 3 is a flow chart showing a user setting font in the method of screen font scaling according to the present invention. Figure 4 is a flow diagram of a preferred embodiment of the method of screen font scaling of the present invention. [Main component symbol description] Mobile terminal 10 Screen 11