简体   繁体   English

如何根据设置的字体大小设置标记文本大小放大时标记大小太大?

[英]How can i set markup text size according to the font size set to it the markup size is too large when zooming in?

i need to change the Text Markup area size according to the text length and size as it is getting too large when zooming in over pdf files.我需要根据文本长度和大小更改文本标记区域大小,因为放大 pdf 文件时它变得太大。 Any help will be appericated.任何帮助都会得到帮助。 Thanks in Advance.提前致谢。

Firstly, you may need to watch the event of camera when the scene is changed.首先,当场景改变时,您可能需要观察相机的事件。 Please check this post: forge Viewer - How can we add CAMERA_CHANGE_EVENT for svg markups?请查看这篇文章: forge Viewer - 我们如何为 svg 标记添加 CAMERA_CHANGE_EVENT?

And you decide if you need to update the text size with the zoom scale.并且您决定是否需要使用缩放比例更新文本大小。 please check the other post about how to change font size of markup Forge MArkups Font Size and Thickness of Freehand请查看另一篇关于如何更改标记的字体大小Forge MArkups Font Size and Thickness of Freehand

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

相关问题 在 Forge Viewer 的标记中为文本设置“字体大小”不起作用,但使用 CSS 设置样式可以 - Setting 'font-size' for text in Markup of Forge Viewer does not work, but styling with CSS does 为什么文本标记大小会基于缩放而变化? - Why Does Text Markup Size Varies Based on Zoom? 如何获得标记的核心扩展名以自动关闭其创建的文本区域? - How can I get the markup's core extension to automatically close the text area it creates? 如何在伪造查看器中显示 2 个不同的 label 集作为标记 - How can I show 2 different label sets as markup in the forge viewer 如何将自定义标记导出回 AutoCAD - How can I export a custom markup back into AutoCAD Autodesk Forge 查看器标记大文本被截断 - Autodesk Forge Viewer Markup Large Text Gets Cut Off 加载时不显示标记 - Markup not show when loaded 如何将唯一的数据库ID加载到MarkupCore扩展标记上? - How can I load a unique database ID onto a MarkupCore extension markup? Forge MArkups Freehand 的字体大小和粗细 - Forge MArkups Font Size and Thickness of Freehand Forge Viewer - 在查看器中创建新标记后,我可以根据事件“EVENT_MARKUP_SELECTED”选择下拉值吗? - Forge Viewer - after creating a new markup in viewer, can I select a dropdown value based on event "EVENT_MARKUP_SELECTED"?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM