当前位置:网站首页>Taishan Office Technology Lecture: how to align and draw words of different sizes on the same line
Taishan Office Technology Lecture: how to align and draw words of different sizes on the same line
2022-06-30 17:36:00 【Liukunpeng】
A line of words with different sizes , There are several schemes for layout drawing :
- Align Top
- Middle alignment
- Align Bottom
- Baseline alignment (OFFICE choice , It should also be the choice of all software )
From the above blog posts , You can see what the baseline is . So how is the baseline of a row determined ? First X Direction layout completed , Secondly, the bank also determines that it is located on this page :
- Traverse all leaves .
- Find the maximum leaf height . Some leaves are pictures , The height exceeds the text leaf .
- Find the biggest leaf BaselineFromBottom.
There are two points to pay attention to :BaseLine To calculate from the bottom up ( Because the height of the row is still uncertain ), Consider the case where there is a border at the bottom .
- Set row height .
- Set up BaselineFromTop
That is, Xinggao -BaselineFromBottom. This facilitates leaf handling .
- draw
According to transitive y, add BaselineFromTop, Is the starting point of text drawing .
边栏推荐
- IEEE TBD SCI影响因子提升至4.271,位列Q1区!
- Write the simplest small program in C language Hello World
- splitting. JS password display hidden JS effect
- 送受伤婴儿紧急就医,滴滴司机连闯五个红灯
- TFTP download kernel, NFS mount file system
- Parker proportional overflow valve rs10r35s4sn1jw
- EMQ 助力青岛研博建设智慧水务平台
- New power of data analysis -- the first open source integrated real-time HTAP database in China was released by stonedb
- 浅析搭建高速公路视频监控平台的建设方案及必要性
- Acwing game 57
猜你喜欢
The new version of Shangding cloud | favorites function has been launched to meet personal use needs
巴比特 | 元宇宙每日必读:未成年人打赏后要求退款,虚拟主播称自己是大冤种,怎么看待这个监管漏洞?...
leetcode:1042. Do not plant flowers adjacent to each other [randomly fill in qualified + no contradiction will be formed behind + set.pop]
Compile - compile for itop4412 development board makefile
Cesium-1.72 learning (China national boundary)
Generate confrontation network, from dcgan to stylegan, pixel2pixel, face generation and image translation.
Fragmentary knowledge points of MySQL
Horizontal visual error effect JS special effect code
splitting.js密码显示隐藏js特效
【网易云信】播放demo构建:无法将参数 1 从“AsyncModalRunner *”转换为“std::nullptr_t”**
随机推荐
Unity particle_ Exception display processing
splitting.js密码显示隐藏js特效
Write the simplest small program in C language Hello World
Key to understanding the trend of spot Silver
基于SSM实现毕业设计管理系统
The new version of Shangding cloud | favorites function has been launched to meet personal use needs
Booking UI effect implemented by svg
4 years of working experience, and you can't tell the five communication modes between multithreads. Can you believe it?
Fragmentary knowledge points of MySQL
Exch: database integrity checking
Compile and generate busybox file system
【剑指Offer】52. 两个链表的第一个公共节点
IEEE TBD SCI影响因子提升至4.271,位列Q1区!
万卷书 - 书单整理 [01]
Exch:Exchange Server 2013 即将终止支持
Ten thousand volumes - list sorting [01]
生成对抗网络,从DCGAN到StyleGAN、pixel2pixel,人脸生成和图像翻译。
高等数学(第七版)同济大学 总习题一 个人解答
腾讯云的一场硬仗
开发那些事儿:Linux系统中如何安装离线版本MySQL?