您好,
我有谷歌开发工具将我的flash电影转换为javascript。我正在阅读生成的代码,我发现所有图像都转换为数据:base64。我得到了它,但代码的其他部分看起来像这样:
{"data":":360c480Hb80D:00H20cb20C20c20C00hb:80d20c00hb20c20c00h20cb80d:00h20Cb20c20C20c00Hb:80D20C00Hb20C20C00H20Cc:800f:b80D:00H20cb20C20c20C00hb:80d20c00hb20c20c00h20cb80d:00h20Cb20c20C20c00Hb:80D20C00Hb20C20C00H20Cc:800f:b80D:00H20cb20C20c20C00hb:80d20c00hb20c20c00h20cb80d:00h20Cb20c20C20c00Hb:80D20C00Hb20C20C00H20Cc","unicode":"\u2026","advance":18400}
这是什么类型的数据,我怎样才能看到它的实际外观?我尝试将其粘贴在浏览器的地址栏上,但没有用。
谢谢。
我在代码中添加了更大的上下文,因此更容易理解:
tags":[{"data":"images/girl.jpe","width":800,"id":1,"type":8,"height":300},{"paths":[{"data":["#40"],"fill":0}],"flat":true,"bounds":"#28","fillstyles":[{"transform":"#17","bitmap":1,"type":6}],"id":2,"type":1},{"depth":1,"id":2,"colortransform":"#30","type":3,"matrix":"192H::193H::"},{"type":2},{"depth":1,"replace":true,"colortransform":"#62","type":3,"matrix":"192H::193H:N"},{"type":2},{"depth":1,"replace":true,"colortransform":"#92","type":3,"matrix":"192H::193H:8B"},{"type":2},{"depth":1,"replace":true,"colortransform":"#41","type":3,"matrix":"192H::193H:1D"},{"type":2},{"depth":1,"replace":true,"colortransform":"#76","type":3,"matrix":"192H::193H:5E"},{"type":2},{"depth":1,"replace":true,"colortransform":"#73","type":3,"matrix":"192H::193H:9F"},{"type":2},{"depth":1,"replace":true,"colortransform":"#114","type":3,"matrix":"192H::193H:3H"},{"data":"images/top/banner/flowers.jpe","width":45,"id":3,"type":8,"height":49,"mask":"images/top/banner/flowersfaded.png"},{"paths":[{"data":[":jCa:80ia00i:a:80Ic"],"fill":0}],"flat":true,"bounds":"jC00i80i","fillstyles":[{"transform":"45184l::45184ljC","bitmap":3,"type":6}],"id":4,"type":1},{"depth":2,"id":4,"colortransform":"#18","type":3,"matrix":"192H::192H107i60w"},{"depth":3,"id":4,"colortransform":"#18","type":3,"matrix":"192H::192H501i31s"},{"depth":4,"id":4,"colortransform":"#18","type":3,"matrix":"192H::192H521h63w"},{"depth":5,"id":4,"colortransform":"#18","type":3,"matrix":"192H::192H906h60r"},{"descent":2036,"ascent":16800,"emSquareSize":20480,"name":"MS Mincho","glyphs":[{"data":":360c480Hb80D:00H20cb20C20c20C00hb:80d20c00hb20c20c00h20cb80d:00h20Cb20c20C20c00Hb:80D20C00Hb20C20C00H20Cc:800f:b80D:00H20cb20C20c20C00hb:80d20c00hb20c20c00h20cb80d:00h20Cb20c20C20c00Hb:80D20C00Hb20C20C00H20Cc:800f:b80D:00H20cb20C20c20C00hb:80d20c00hb20c20c00h20cb80d:00h20Cb20c20C20c00Hb:80D20C00Hb20C20C00H20Cc","unicode":"\u2026","advance":18400},{"data":"","unicode":" ","advance":5120},{"data":":80t720Bb80D:0H20cb40n80l20s80tb40f20k40j40rb0x80d40f80db0x:80d0Xb20c20C20c00Hb:20G20G40Nb80P80P600C40Vc","unicode":"、","advance":7141.818181818182}
答案 0 :(得分:0)
完全基于上下文:
{
"descent": 2036,
"ascent": 16800,
"emSquareSize": 20480,
"name": "MS Mincho",
"glyphs": [
{
"data": ":360c480Hb80D:00H20cb20C20c20C00hb:80d20c00hb20c20c00h20cb80d:00h20Cb20c20C20c00Hb:80D20C00Hb20C20C00H20Cc:800f:b80D:00H20cb20C20c20C00hb:80d20c00hb20c20c00h20cb80d:00h20Cb20c20C20c00Hb:80D20C00Hb20C20C00H20Cc:800f:b80D:00H20cb20C20c20C00hb:80d20c00hb20c20c00h20cb80d:00h20Cb20c20C20c00Hb:80D20C00Hb20C20C00H20Cc",
"unicode": "\u2026",
"advance": 18400
},
{
"data": "",
"unicode": "\u3000",
"advance": 5120
},
{
"data": ":80t720Bb80D:0H20cb40n80l20s80tb40f20k40j40rb0x80d40f80db0x:80d0Xb20c20C20c00Hb:20G20G40Nb80P80P600C40Vc",
"unicode": "\u3001",
"advance": 7141.8181818182
}
]
}
我想说它是在一个名为" MS Mincho"的字体中定义3个字符的字形。十六进制值可能代表字体字形中的路径元素,虽然我不认识编码(这并不意味着很多 - 我不太了解字体)。
有关如何在SVG中编码字形的说明,请参阅here - 您可以看到标记之间有一些相似之处,但路径编码完全不同。