简体   繁体   English

在 Acobat 中,如何在具有自动字体大小和多行的字段中强制执行最小字体大小?

[英]In Acobat, how can I enforce a minimum font size in a field with auto-font sizing, and multiple lines?

I've found interesting solutions here about setting a font size on blur and focus;我在这里找到了关于在模糊和焦点上设置字体大小的有趣解决方案; what I am looking to do is to limit how small a font can get as a user types more text into a field.我想要做的是限制当用户在字段中键入更多文本时字体可以变得多小。 Setting a character limit does not provide a reliable solution because line breaks can allow font to get extremely small long before any character limit is met.设置字符限制并不能提供可靠的解决方案,因为换行会使字体在满足任何字符限制之前很长时间变得非常小。

Is there a way in Adobe Acrobat to, upon typing, have the font size decrease until a minimum of say 8pt, then prevent additional typing? Adobe Acrobat 中有没有办法在打字时将字体大小减小到至少 8pt,然后防止额外打字?

In Acrobat, when a mulit-line text field has no text limit and is set to not scroll long text and the font size is set to auto, you have no control over the font size... by design.在 Acrobat 中,当多行文本字段没有文本限制并且设置为不滚动长文本并且字体大小设置为自动时,您无法控制字体大小……这是设计使然。 However, the minimum font size is 6. The font size will shrink to accommodate the amount of text entered until it hits 6 points and then prevent more text from being entered.但是,最小字体大小为 6。字体大小将缩小以容纳输入的文本量,直到达到 6 点,然后防止输入更多文本。 There is no programmatic control.没有程序控制。 This happens live as you type.这会在您键入时实时发生。 If you want something other than 6 as the minimum, you'll need to add some script.如果您想要的不是 6 的最小值,则需要添加一些脚本。 It can be done but the user experience is horrid because the text needs to be committed before the correct size can be calculated.它可以完成,但用户体验很糟糕,因为在计算正确的大小之前需要提交文本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM