Closed
Bug 96768
Opened 23 years ago
Closed 23 years ago
Need a persistant store for "expensive to calculate" font properties
Categories
(Core :: Internationalization, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 116149
Future
People
(Reporter: bstell, Assigned: bstell)
References
(Blocks 1 open bug)
Details
Attachments
(3 files, 5 obsolete files)
(deleted),
text/plain
|
Details | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review |
Bug 96767 proposes to determine the available glyphs in a font. Since this can
be time/CPU expensive it would be good to store the results so they could be
used during later runs without the calculation penalty.
This information does not seem to fit well into preferences so perhaps it
should have its own file.
Assignee | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Assignee | ||
Comment 1•23 years ago
|
||
Assignee | ||
Comment 2•23 years ago
|
||
Comment 3•23 years ago
|
||
Ah, there this bug is! Feel free to cc: me any time. More soon on the patch.
/be
Assignee | ||
Comment 4•23 years ago
|
||
Comment 5•23 years ago
|
||
Shaver wondered whether we might use this db for the XPCOM registry, too.
Cc'ing him.
/be
Comment 6•23 years ago
|
||
Comment on attachment 47601 [details] [diff] [review]
patch; sample usage of nsFontCatalogFile (demo only)
I dislike using references for out params (non-const refs), because they make the call site's
side effects harder to see than if the caller must use & to pass an address.
Otherwise, looks great -- should I review the main patch? Sorry I've been swamped by
0.9.5 work.
/be
Assignee | ||
Comment 7•23 years ago
|
||
okay, I will change to from char*& to char**.
Since the tree will be closed for a few days I'd like to discuss this with
shaver before checking in.
Assignee | ||
Comment 8•23 years ago
|
||
Updated the GetNextElement() method to tell caller how big a buffer
is needed (if current buffer is too small).
GetNextElement() now returns:
a positive if name and value gotten
0 if end of file
a negative number on error
if (return_val > -NVPDB_MIN_BUFLEN)
return_val is an error code
else
return_val is the needed buffer size
Attachment #47600 -
Attachment is obsolete: true
Attachment #47601 -
Attachment is obsolete: true
Attachment #50108 -
Attachment is obsolete: true
Assignee | ||
Comment 9•23 years ago
|
||
Assignee | ||
Comment 10•23 years ago
|
||
added comments re: implementing the code to re-get the element if it is
larger than the buffer
Attachment #58262 -
Attachment is obsolete: true
Comment 11•23 years ago
|
||
Comment on attachment 58359 [details] [diff] [review]
patch; additional comments, same code as previous
/r=yokoyama
Attachment #58359 -
Flags: review+
Comment 12•23 years ago
|
||
I was building with the patch from bug 100570, while compiling
nsNameValuePairDB.o, i got the following error:
In method `PRBool nsNameValuePairDB::OpenForRead(const char *)':
350: jump to label `OpenForRead_Error'
330: from here
339: crosses initialization of `class nsCOMPtr<nsILocalFile> local_file'
332: crosses initialization of `class nsCAutoString name
simply move the code in OpenForRead_Error into the block calling corresponding
goto solves this.
is my c++ too old? it's gcc 2.95.3
Assignee | ||
Comment 13•23 years ago
|
||
your compilier is fine.
this version of the code needs attention
I'v been working on it in bug 100570
Assignee | ||
Comment 14•23 years ago
|
||
Attachment #58359 -
Attachment is obsolete: true
Assignee | ||
Comment 15•23 years ago
|
||
slight improvment to GetNextElement
Assignee | ||
Comment 16•23 years ago
|
||
I need to check this will compile on Redhat 6.2
Assignee | ||
Comment 17•23 years ago
|
||
this was implemented in bug 116149
*** This bug has been marked as a duplicate of 116149 ***
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Comment 18•23 years ago
|
||
Verifying as dupe, please re-open if someone disagrees.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•