finding font file size using java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashokformac
    New Member
    • Mar 2007
    • 16

    finding font file size using java

    I am developing a program in java on mac os ..
    when i try to find filesize it is giving me '0 long' on font file(actual size is some 2000 bytes ) but on other files it is working properly ...

    can any one know the answer ,, please help me..

    thanks in advance ..
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by ashokformac
    I am developing a program in java on mac os ..
    when i try to find filesize it is giving me '0 long' on font file(actual size is some 2000 bytes ) but on other files it is working properly ...

    can any one know the answer ,, please help me..

    thanks in advance ..
    I don't understand your question: do you want the size of a file or do you want
    to find the point size of a font? The content of your messages suggests one,
    the title of you message suggests the other.

    kind regards,

    Jos

    Comment

    • emekadavid
      New Member
      • Mar 2007
      • 46

      #3
      In the Filefile class there is a length() method which returns long type. is this the method you used? According to the api, this method returns the length of a file in bytes and has system dependent properties especially as regards devices and or pipes. So maybe that was where you had problems with running this method in your mac. Why not read the api and see if it can help resolve your problem or you rephrase the question.

      Comment

      Working...