Jag behöver din hjälp hela vägen, ser ut så.

EDIT: Jag laddade hem ming-fonts-dejavu från synaptic, men jag hittar inte själva filen. Hur ska jag söka? (Föregående övningen gjorde jag med arial)
Så här gör jag när jag laddat ner något nytt som jag inte hittar.Hymer skrev: EDIT: Jag laddade hem ming-fonts-dejavu från synaptic, men jag hittar inte själva filen. Hur ska jag söka? (Föregående övningen gjorde jag med arial)
Kod: Markera allt
sudo updatedb
locate -i dejavu
Ovanstående kan du hoppa över.Besides TrueType fonts, swfc also supports native SWF fonts. If you have a SWF with a font you would like to use, do a
swfextract file.swf
Then write down the font ID of the font, and do a
swfextract -f <fontid> file.swf -o myfont.swf
Jag har följt instruktionerna i det sista citatet och det fungerar.Furthermore, you can convert TTF and Type1 fonts into SWF using font2swf:
font2swf Arial.ttf -o Arial.swf
The nice advantage of this is that you can play Arial.swf in the flash player and see what the font looks like. (Also, loading a font in SWF format is slighly faster than from a TTF file, as with TTFs spline conversion has to take place).
So much for the basics. Now let's go to the more advanced functionality around fonts.
Apart from being able to define text in your swfc files, you can also define text outlines. Those are not real characters but rather abstract vector objects which you can use in other commands.
Jag kollade igenom Adobes EULA och det närmsta jag hittade var:Harlekin33 skrev:Det finns ju Gnash men det är bara 4-5st i hela världen som utvecklar det pga. av nån licens som säger att man inte får ha laddat ner Adobe flash nånsin.
Eller är det någon annan licens du pratar om?3.4 No Modification or Reverse Engineering. You may not modify, adapt, translate or create derivative works based
upon the Software. You will not reverse engineer, decompile, disassemble or otherwise attempt to discover the
source code of the Software except to the extent you may be expressly permitted to reverse engineer or decompile
under applicable law.
Står i sista stycket här:Inhuman Soul skrev:Jag kollade igenom Adobes EULA och det närmsta jag hittade var:Harlekin33 skrev:Det finns ju Gnash men det är bara 4-5st i hela världen som utvecklar det pga. av nån licens som säger att man inte får ha laddat ner Adobe flash nånsin.Eller är det någon annan licens du pratar om?3.4 No Modification or Reverse Engineering. You may not modify, adapt, translate or create derivative works based
upon the Software. You will not reverse engineer, decompile, disassemble or otherwise attempt to discover the
source code of the Software except to the extent you may be expressly permitted to reverse engineer or decompile
under applicable law.
För att ändra läget på texten i höjdled ändrar du alla y=100 till t.ex y=50textshape helloworld text="HELLO WORLD" font=times size=150%
Det stämmer...det jag markerade med fet stil i citatet ovan.Hymer skrev:Jag har lyckats ändra storleken på boxen, fast helt överraskande tvärtom. bbox i första raden ändrar storleken, men konstigt nog skriver man in lägre siffror, blir det större bokstäver.Men jag har inte lyckats lista förutse resultatet, bara testade olika siffror och det blev lite överraskningar varje gång.
Inkscape är en av mina favoriter, den är fantastisk. Och det går att öppna .svg filer i Quanta som xml-fil, fast jag får mest felmeddelande. Jag hoppades på att jag kunde konstruera vad som helst med inkscape och animera det med swfc, men det går tydligen inte.you can use the svg editor of your choice (e.g.: inkscape) to create these outlines. You then need to extract them out of the .xml/.svg file.
Kod: Markera allt
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="744.09448819"
height="1052.3622047"
id="svg2"
sodipodi:version="0.32"
inkscape:version="0.46"
sodipodi:docname="inkad.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape">
<defs
id="defs4">
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="0 : 526.18109 : 1"
inkscape:vp_y="6.1230318e-14 : 1000 : 0"
inkscape:vp_z="744.09448 : 526.18109 : 1"
inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
id="perspective10" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
gridtolerance="10000"
guidetolerance="10"
objecttolerance="10"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.4"
inkscape:cx="375"
inkscape:cy="520"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="966"
inkscape:window-height="724"
inkscape:window-x="30"
inkscape:window-y="27" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<g
sodipodi:type="inkscape:box3d"
style="opacity:1;fill:#ffff00;fill-opacity:1;fill-rule:nonzero;stroke:#fe0000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="g4923"
inkscape:perspectiveID="#perspective10"
inkscape:corner0="0.53647828 : 0.33820165 : 0 : 1"
inkscape:corner7="0.033464554 : 0.01620065 : 0.25 : 1"
inkscape:export-filename="/home/ivan/Dokument/flashfont/inkad.swfc.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<path
sodipodi:type="inkscape:box3dside"
id="path4931"
style="fill:#ffff00;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
inkscape:box3dsidetype="14"
d="M 360,368.64502 L 360,680.21932 L 434.81595,650.21494 L 434.81595,399.33073 L 360,368.64502 z" />
<path
sodipodi:type="inkscape:box3dside"
id="path4933"
style="fill:#afafde;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
inkscape:box3dsidetype="13"
d="M 242.14286,629.79014 L 360,680.21932 L 434.81595,650.21494 L 312.38603,615.29108 L 242.14286,629.79014 z" />
<path
sodipodi:type="inkscape:box3dside"
id="path4925"
style="fill:#353564;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
inkscape:box3dsidetype="6"
d="M 242.14286,420.21933 L 242.14286,629.79014 L 312.38603,615.29108 L 312.38603,435.04763 L 242.14286,420.21933 z" />
<path
sodipodi:type="inkscape:box3dside"
id="path4935"
style="fill:#e9e9ff;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
inkscape:box3dsidetype="11"
d="M 312.38603,435.04763 L 434.81595,399.33073 L 434.81595,650.21494 L 312.38603,615.29108 L 312.38603,435.04763 z" />
<path
sodipodi:type="inkscape:box3dside"
id="path4927"
style="fill:#4d4d9f;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
inkscape:box3dsidetype="5"
d="M 242.14286,420.21933 L 360,368.64502 L 434.81595,399.33073 L 312.38603,435.04763 L 242.14286,420.21933 z" />
<path
sodipodi:type="inkscape:box3dside"
id="path4929"
style="fill:#ff0000;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
inkscape:box3dsidetype="3"
d="M 242.14286,420.21933 L 360,368.64502 L 360,680.21932 L 242.14286,629.79014 L 242.14286,420.21933 z" />
</g>
</g>
</svg>
Det vet jag tyvärr inte.Hymer skrev:Här har jag sparat ett Inkscape-exempel som svg-fil som jag har öppnat och sparat som xml:
Kan man stöpa om det med swfc på något sätt?
Det har jag nog drömt, för jag kan inte hitta det igen.Rune.K skrev:Men jag har sett någonstans, att när man är i inkscape så ska man kunna exportera till swfc för att få en flash-fil (.swf).
Du såg antagligen den här:Det har jag nog drömt, för jag kan inte hitta det igen.Rune.K skrev:Men jag har sett någonstans, att när man är i inkscape så ska man kunna exportera till swfc för att få en flash-fil (.swf).
Fast det handlar inte om att exportera. När man sparar Inkscape-objekt, då sparar man direkt som svg-fil som kan öppnas som xml i text-redigeraren. För att spara det som png eller andra vanliga bidformat, måste man exportera.The syntax of the paths inside the .outline command is the same as in svg. That means you can use the svg editor of your choice (e.g.: inkscape) to create these outlines. You then need to extract them out of the .xml/.svg file. They are inside the "d" attribute of the "path" tag: