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)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 116149
Future

People

(Reporter: bstell, Assigned: bstell)

References

(Blocks 1 open bug)

Details

Attachments

(3 files, 5 obsolete files)

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.
Blocks: 96767
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Ah, there this bug is! Feel free to cc: me any time. More soon on the patch. /be
Shaver wondered whether we might use this db for the XPCOM registry, too. Cc'ing him. /be
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
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.
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
Attached file sample DB file (deleted) —
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 on attachment 58359 [details] [diff] [review] patch; additional comments, same code as previous /r=yokoyama
Attachment #58359 - Flags: review+
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
your compilier is fine. this version of the code needs attention I'v been working on it in bug 100570
Attached patch patch; mozilla/gfx/public dir (deleted) — Splinter Review
Attachment #58359 - Attachment is obsolete: true
Attached patch patch; mozilla/gfx/src dir (deleted) — Splinter Review
slight improvment to GetNextElement
I need to check this will compile on Redhat 6.2
Blocks: 106026
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
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.

Attachment

General

Created:
Updated:
Size: