doc/classes/C64GeosFont.src/M000185.html in ripxplore-0.12.0 vs doc/classes/C64GeosFont.src/M000185.html in ripxplore-0.13.0
- old
+ new
@@ -3,24 +3,24 @@
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
- <title>char_width (C64GeosFont)</title>
+ <title>point_ids (C64GeosFont)</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/native_file_types/c64/C64GeosFont.rb, line 60</span>
-<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">char_width</span>(<span class="ruby-identifier">point_size</span>,<span class="ruby-identifier">char</span>)
- <span class="ruby-identifier">font_data</span>=<span class="ruby-ivar">@contents</span>[<span class="ruby-identifier">point_size</span><span class="ruby-operator">+</span><span class="ruby-value">1</span>]
- <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">font_data</span>.<span class="ruby-identifier">nil?</span>
- <span class="ruby-identifier">bit_stream_index</span>=<span class="ruby-identifier">font_data</span>[<span class="ruby-value">0x04</span>]<span class="ruby-operator">+</span><span class="ruby-value">0x100</span><span class="ruby-operator">*</span><span class="ruby-identifier">font_data</span>[<span class="ruby-value">0x05</span>]
- <span class="ruby-identifier">char_pointer</span>=<span class="ruby-value">2</span><span class="ruby-operator">*</span>((<span class="ruby-identifier">char</span>[<span class="ruby-value">0</span>]<span class="ruby-operator">%</span><span class="ruby-value">0x80</span>)<span class="ruby-operator">-</span><span class="ruby-value">0x20</span>)
- <span class="ruby-identifier">start_of_char</span>=<span class="ruby-identifier">font_data</span>[<span class="ruby-identifier">char_pointer</span><span class="ruby-operator">+</span><span class="ruby-identifier">bit_stream_index</span>]<span class="ruby-operator">+</span><span class="ruby-value">0x100</span><span class="ruby-operator">*</span><span class="ruby-identifier">font_data</span>[<span class="ruby-identifier">char_pointer</span><span class="ruby-operator">+</span><span class="ruby-identifier">bit_stream_index</span><span class="ruby-operator">+</span><span class="ruby-value">1</span>]
- <span class="ruby-identifier">start_of_next_char</span>=<span class="ruby-identifier">font_data</span>[<span class="ruby-identifier">char_pointer</span><span class="ruby-operator">+</span><span class="ruby-identifier">bit_stream_index</span><span class="ruby-operator">+</span><span class="ruby-value">2</span>]<span class="ruby-operator">+</span><span class="ruby-value">0x100</span><span class="ruby-operator">*</span><span class="ruby-identifier">font_data</span>[<span class="ruby-identifier">char_pointer</span><span class="ruby-operator">+</span><span class="ruby-identifier">bit_stream_index</span><span class="ruby-operator">+</span><span class="ruby-value">3</span>]
- <span class="ruby-identifier">width</span>=(<span class="ruby-identifier">start_of_next_char</span><span class="ruby-operator">-</span><span class="ruby-identifier">start_of_char</span>)
- <span class="ruby-identifier">raise</span> <span class="ruby-node">"invalid char width #{width} for char $#{"%02x" % char[0]} point size #{point_size} - char pointer=#{char_pointer}"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">width</span><span class="ruby-operator">></span>(<span class="ruby-value">2</span><span class="ruby-operator">*</span><span class="ruby-identifier">point_size</span>)
- <span class="ruby-identifier">width</span>
+ <pre><span class="ruby-comment cmt"># File lib/native_file_types/c64/C64GeosFont.rb, line 90</span>
+<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">point_ids</span>
+ <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@point_ids</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">then</span>
+ <span class="ruby-ivar">@point_ids</span>=[]
+ <span class="ruby-value">16</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
+ <span class="ruby-identifier">point_id</span>=<span class="ruby-identifier">info_block</span>[<span class="ruby-value">2</span><span class="ruby-operator">*</span><span class="ruby-identifier">i</span><span class="ruby-operator">+</span><span class="ruby-value">0x82</span>]<span class="ruby-operator">+</span><span class="ruby-value">100</span><span class="ruby-operator">*</span><span class="ruby-identifier">info_block</span>[<span class="ruby-value">2</span><span class="ruby-operator">*</span><span class="ruby-identifier">i</span><span class="ruby-operator">+</span><span class="ruby-value">0x83</span>]
+ <span class="ruby-keyword kw">break</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">point_id</span><span class="ruby-operator">==</span><span class="ruby-value">0</span>
+ <span class="ruby-ivar">@point_ids</span><span class="ruby-operator"><<</span><span class="ruby-identifier">point_id</span>
+ <span class="ruby-keyword kw">end</span>
+ <span class="ruby-keyword kw">end</span>
+ <span class="ruby-ivar">@point_ids</span>
<span class="ruby-keyword kw">end</span></pre>
</body>
</html>
\ No newline at end of file