Font limitation in MSAccess richtext edit tool

倖福魔咒の 提交于 2019-12-11 03:07:51

问题


Using MSAccess (2010+) richtext control. However, edit tool provides only limited number of font point sizes e.g. 6,8,10, 12; compared to editing within Word that provides e.g 8,9,10,11,12

This is driving my client mad as they wish to save text using 11pt - but this point size is not available.

Has anybody else observed this issue and is there a possible solution


回答1:


You can't select 11pt, because Access Richtext (actually HTML) doesn't store point sizes, but a fixed set of <font size=1> to <font size=7>.

You can inspect this by adding a textbox with the same control source, but with TextFormat = Plain text.

What you can do is to set the FontSize property of the rich text box to 11. Then all text where no font size is specified, will be shown at 11pt.

It will even show 11 in the format toolbar for regular text.



来源:https://stackoverflow.com/questions/55523926/font-limitation-in-msaccess-richtext-edit-tool

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!