wangqr / Aegisub

Win64 nightly builds available at GHA artifact, also at following link:
https://ftp.wangqr.tk/aegisub/
Other
799 stars 49 forks source link

[FR] Increase the precision of font size setting in style manager #165

Open machinewu opened 1 year ago

machinewu commented 1 year ago

In the style manager, the font size adjustment can only be an integer, hoping to keep 1 decimal place, like the border and shadow settings next to it.

font size insert

Font size can be set not only interger. but the font size in the style manager will only display an integer. Just a test:

[Script Info]
; Script generated by Aegisub 3.3.3
; http://www.aegisub.org/
ScriptType: v4.00+
WrapStyle: 0
ScaledBorderAndShadow: yes
PlayResX: 840
PlayResY: 480

[Aegisub Project Garbage]
Last Style Storage: Default
Video File: ?dummy:23.976000:600:1920:1080:49:172:254:
Video AR Value: 1.777778
Video Zoom Percent: 0.500000
Active Line: 2

[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Default1,Arial,24.5,&H00FF0000,&H00FFFFFF,&H0000FFFF,&H00000000,0,0,0,0,100,100,0,0,1,1,0,4,15,15,23,1
Style: Default2,Arial,24,&H000000FF,&H00FFFFFF,&H0000FFFF,&H00000000,0,0,0,0,100,100,0,0,1,1,0,6,15,15,23,1

[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Comment: 1,0:00:00.00,0:00:05.00,Default1,text,0,0,0,template line notext,
Comment: 1,0:00:00.00,0:00:05.00,Default1,data,0,0,0,template line notext,{\fs20\an1}center=!$lcenter!, middle=!$lmiddle!\Nwidth=!$lwidth!, height=!$lheight!
Comment: 2,0:00:00.00,0:00:05.00,Default2,text,0,0,0,template line notext,
Comment: 2,0:00:00.00,0:00:05.00,Default2,data,0,0,0,template line notext,{\fs20\an3}center=!$lcenter!, middle=!$lmiddle!\Nwidth=!$lwidth!, height=!$lheight!
Comment: 0,0:00:00.00,0:00:05.00,Default1,,0,0,0,karaoke,ABCEFG
Comment: 0,0:00:00.00,0:00:05.00,Default2,,0,0,0,karaoke,ABCEFG
Dialogue: 1,0:00:00.00,0:00:05.00,Default1,,0,0,0,fx,ABCEFG
Dialogue: 1,0:00:00.00,0:00:05.00,Default1,,0,0,0,fx,{\fs20\an1}center=59, middle=240\Nwidth=89, height=25
Dialogue: 2,0:00:00.00,0:00:05.00,Default2,,0,0,0,fx,ABCEFG
Dialogue: 2,0:00:00.00,0:00:05.00,Default2,,0,0,0,fx,{\fs20\an3}center=782, middle=240\Nwidth=87, height=24

font compare

Chinese translation: 希望能增加字体大小设置的精度 样式管理器中,字体大小的调整只能是整数,希望能增加1位小数,像旁边的边框和阴影设置那样 字体大小可以不设置成整数,但是样式管理器中字体大小只会显示整数