TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua

 找回密码
 新人加入
查看: 6731|回复: 6
打印 上一主题 下一主题

[已解决] 求牛奶用freetype的轮廓描述符 [复制链接]

Super Moderator

{\clip\t(\clip)}∀.I.R.nesSub

Rank: 6Rank: 6

跳转到指定楼层
楼主
发表于 2011-10-6 23:11:21 |只看该作者 |倒序浏览
本帖最后由 BurySakura 于 2011-10-7 01:48 编辑

我报我获得的描述符

simhei.tff

“我”字

n_points
93

n_contours
2

contours
[84, 92]

我对比了下tcax生成的,点数明显多,不知道是freetype的版本问题还是别的原因。
照理来说,矢量字体这些参数应该是相同的。
我没研究过XX大的代码,全凭自己感觉写的,可能存在Bug?

Administrator

TCAX Dev.

Rank: 7Rank: 7Rank: 7

沙发
发表于 2011-10-6 23:42:02 |只看该作者
黑体 "我" 93 无误...

Administrator

TCAX Dev.

Rank: 7Rank: 7Rank: 7

板凳
发表于 2011-10-6 23:55:15 |只看该作者
详细结果:


TCAX version 0.9.8 [2011-08-24]
(C) Copyright 2011 milkyjing

n_contours = 2
n_points = 93

01 point (1240, 1830)
02 point (1270, 1780)
03 point (1180, 1750)
04 point (890, 1690)
05 point (890, 1310)
06 point (1410, 1310)
07 point (1410, 1580)
08 point (1400, 2060)
09 point (1510, 2040)
10 point (1620, 2040)
11 point (1600, 1890)
12 point (1600, 1700)
13 point (1600, 1310)
14 point (2050, 1310)
15 point (2200, 1310)
16 point (2400, 1320)
17 point (2400, 1140)
18 point (2200, 1150)
19 point (2060, 1150)
20 point (1610, 1150)
21 point (1640, 670)
22 point (1740, 460)
23 point (1950, 660)
24 point (2100, 1050)
25 point (2180, 980)
26 point (2310, 920)
27 point (2230, 830)
28 point (1970, 420)
29 point (1830, 280)
30 point (1910, 160)
31 point (2090, 0)
32 point (2200, -30)
33 point (2250, 120)
34 point (2260, 260)
35 point (2360, 190)
36 point (2470, 140)
37 point (2390, -140)
38 point (2210, -280)
39 point (1870, -100)
40 point (1690, 150)
41 point (1350, -90)
42 point (1150, -190)
43 point (1090, -80)
44 point (1000, -10)
45 point (1300, 90)
46 point (1590, 320)
47 point (1450, 600)
48 point (1420, 1150)
49 point (890, 1150)
50 point (890, 760)
51 point (1120, 810)
52 point (1240, 860)
53 point (1250, 760)
54 point (1260, 670)
55 point (1130, 640)
56 point (890, 580)
57 point (890, 70)
58 point (900, -120)
59 point (640, -230)
60 point (470, -260)
61 point (460, -150)
62 point (370, -30)
63 point (570, -30)
64 point (700, 20)
65 point (700, 110)
66 point (700, 530)
67 point (320, 430)
68 point (200, 390)
69 point (190, 530)
70 point (140, 620)
71 point (320, 640)
72 point (700, 720)
73 point (700, 1150)
74 point (310, 1150)
75 point (160, 1140)
76 point (160, 1320)
77 point (320, 1310)
78 point (700, 1310)
79 point (700, 1640)
80 point (280, 1550)
81 point (250, 1660)
82 point (200, 1740)
83 point (350, 1740)
84 point (980, 1880)
85 point (1140, 1970)
86 point (2140, 1700)
87 point (2250, 1580)
88 point (2170, 1520)
89 point (2090, 1440)
90 point (1930, 1660)
91 point (1750, 1800)
92 point (1830, 1870)
93 point (1880, 1940)
Press any key to continue...

Super Moderator

{\clip\t(\clip)}∀.I.R.nesSub

Rank: 6Rank: 6

地板
发表于 2011-10-6 23:57:19 |只看该作者
[(1240, 1830), (1270, 1780), (1180, 1750), (890, 1690), (890, 1310), (1410, 1310), (1410, 1580), (1400, 2060), (1510, 2040), (1620, 2040), (1600, 1890), (1600, 1700), (1600, 1310), (2050, 1310), (2200, 1310), (2400, 1320), (2400, 1140), (2200, 1150), (2060, 1150), (1610, 1150), (1640, 670), (1740, 460), (1950, 660), (2100, 1050), (2180, 980), (2310, 920), (2230, 830), (1970, 420), (1830, 280), (1910, 160), (2090, 0), (2200, -30), (2250, 120), (2260, 260), (2360, 190), (2470, 140), (2390, -140), (2210, -280), (1870, -100), (1690, 150), (1350, -90), (1150, -190), (1090, -80), (1000, -10), (1300, 90), (1590, 320), (1450, 600), (1420, 1150), (890, 1150), (890, 760), (1120, 810), (1240, 860), (1250, 760), (1260, 670), (1130, 640), (890, 580), (890, 70), (900, -120), (640, -230), (470, -260), (460, -150), (370, -30), (570, -30), (700, 20), (700, 110), (700, 530), (320, 430), (200, 390), (190, 530), (140, 620), (320, 640), (700, 720), (700, 1150), (310, 1150), (160, 1140), (160, 1320), (320, 1310), (700, 1310), (700, 1640), (280, 1550), (250, 1660), (200, 1740), (350, 1740), (980, 1880), (1140, 1970), (2140, 1700), (2250, 1580), (2170, 1520), (2090, 1440), (1930, 1660), (1750, 1800), (1830, 1870), (1880, 1940)]

Administrator

TCAX Dev.

Rank: 7Rank: 7Rank: 7

5#
发表于 2011-10-6 23:59:03 |只看该作者
好吧, 萌葬, 你得承认你萌了

Super Moderator

{\clip\t(\clip)}∀.I.R.nesSub

Rank: 6Rank: 6

6#
发表于 2011-10-7 01:44:08 |只看该作者
本帖最后由 BurySakura 于 2011-10-7 01:55 编辑

好吧,睡不着,爬起来问题找到了,是tags有问题。

[0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1]

坑爹呢,还有四次、五次曲线(伪,这tags也太不负责任了。

Administrator

TCAX Dev.

Rank: 7Rank: 7Rank: 7

7#
发表于 2011-10-7 02:00:16 |只看该作者
BurySakura 发表于 2011-10-7 01:44
好吧,睡不着,爬起来问题找到了,是tags有问题。

[0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1,  ...


哦... 我也想起来了- -

在使用tag之前, 还必须先判断该点的前继情况...

p.s. 现在结果正常了吧?
您需要登录后才可以回帖 登录 | 新人加入

GitHub|TCAX 主页

GMT+8, 2024-11-25 02:14

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部
RealH