Login
Login
Register
Questions
Unanswered
Tags
Users
Ask a Question
Ask a Question
How to process encoded offsets
0
votes
asked
Jul 9, 2024
in
Generic
by
martin-winter
(
180
points)
I am currently greatly expanding the OpenType grammar. The CFF table uses a complex encoding scheme for number values in order to save space. Some of these encoded values represent offsets to other internal data structures. My questions: How can I either use regular offset elements and feed them decoded values, or how can I programmatically create and configure offset elements? They do not seem to be documented much at all. Thank you!
Please
log in
or
register
to answer this question.
1 Answer
0
votes
answered
Jul 18, 2024
by
martin-winter
(
180
points)
Never mind, I figured it out myself. I ended up writing a custom data type script for the entire dictionary, which includes functions for decoding the offsets. I then mapped the structures using `currentMapper.mapStructureAtPosition`.
Please
log in
or
register
to add a comment.
Welcome to Synalysis Q&A, where you can ask questions and receive answers from other members of the community.
All categories
Grammars
(21)
Hexinator
(8)
Synalyze It!
(21)
Scripting
(12)
Generic
(3)
Python
(9)
Lua
(0)
Related questions
AOB / pattern / signature scan to get offsets // is it possible?
How can I re-analyze a file during script development?
How to do Bitwise AND Operation
How to create grammar file that highlight occurrences of specific bytes ?
How to display bytes (non-printing control codes) as Unicode control pictures?
Most popular tags
grammar
hexinator
scripts
python
structure
value
endianness
repeat
numberelement
offset-search
automation
floating-point-numbers
variable-length
bit-logic
padding
result
string
object-file
omf-51
font
consists-of
meter-bus
m-bus
cpap
conditional
date
dates
dump
nokia
decode
bug
bin
decrypt
openssl
wav-files
corrupted
audio
csv
lengthunit
structuremapper
headers
signature
pattern
aob
diff
export
hex-editing
installer
elf
masks
magicnumber
derive
mapper
delimited
change
no
getcurrentresults
element
file
length
order
...