矢量字库文件组织方式英文Word文件下载.docx

上传人:b****6 文档编号:18667588 上传时间:2022-12-31 格式:DOCX 页数:10 大小:18.53KB
下载 相关 举报
矢量字库文件组织方式英文Word文件下载.docx_第1页
第1页 / 共10页
矢量字库文件组织方式英文Word文件下载.docx_第2页
第2页 / 共10页
矢量字库文件组织方式英文Word文件下载.docx_第3页
第3页 / 共10页
矢量字库文件组织方式英文Word文件下载.docx_第4页
第4页 / 共10页
矢量字库文件组织方式英文Word文件下载.docx_第5页
第5页 / 共10页
点击查看更多>>
下载资源
资源描述

矢量字库文件组织方式英文Word文件下载.docx

《矢量字库文件组织方式英文Word文件下载.docx》由会员分享,可在线阅读,更多相关《矢量字库文件组织方式英文Word文件下载.docx(10页珍藏版)》请在冰豆网上搜索。

矢量字库文件组织方式英文Word文件下载.docx

    dfType2bytesspecifyingthetypeoffontfile.

    Thelow-orderbyteisexclusivelyforGDIuse.Ifthe

  low-orderbitoftheWORDiszero,itisabitmap

  (raster)fontfile.Ifthelow-orderbitis1,itisa

  vectorfontfile.Thesecondbitisreservedandmust

  bezero.Ifnobitsfollowinthefileandthebitsare

  locatedinmemoryatafixedaddressspecifiedin

  dfBitsOffset,thethirdbitissetto1;

otherwise,the

  bitissetto0(zero).Thehigh-orderbitofthelow

  byteissetifthefontwasrealizedbyadevice.The

  remainingbitsinthelowbytearereservedandsetto

  zero.

    Thehighbyteisreservedfordeviceuseandwill

  alwaysbesettozeroforGDI-realizedstandardfonts.

  Physicalfontswiththehigh-orderbitofthelowbyte

  setmayusethisbytetodescribethemselves.GDIwill

  neverinspectthehighbyte.

    dfPoints2bytesspecifyingthenominalpointsizeatwhich

  thischaractersetlooksbest.

    dfVertRes2bytesspecifyingthenominalverticalresolution

  (dots-per-inch)atwhichthischaractersetwas

  digitized.

    dfHorizRes2bytesspecifyingthenominalhorizontalresolution

    dfAscent2bytesspecifyingthedistancefromthetopofa

  characterdefinitioncellto

    thebaselineofthe

  typographicalfont.Itisusefulforaligningthe

  baselinesoffontsofdifferentheights.

    dfInternalLeading

  Specifiestheamountofleadinginsidetheboundsset

  bydfPixHeight.Accentmarksmayoccurinthisarea.

  Thismaybezeroatthedesigner'

soption.

    dfExternalLeading

  Specifiestheamountofextraleadingthatthedesigner

  requeststheapplicationaddbetweenrows.Sincethis

  areaisoutsideofthefontproper,itcontainsno

  marksandwillnotbealteredbytextoutputcallsin

  eithertheOPAQUEorTRANSPARENTmode.Thismaybezero

  atthedesigner'

    dfItalic1(one)bytespecifyingwhetherornotthecharacter

  definitiondatarepresentanitalicfont.Thelow-order

  bitis1iftheflagisset.Alltheotherbitsare

    dfUnderline1bytespecifyingwhetherornotthecharacter

  definitiondatarepresentanunderlinedfont.The

  low-orderbitis1iftheflagisset.Alltheother

  bitsare0(zero).

    dfStrikeOut1bytespecifyingwhetherornotthecharacter

  definitiondatarepresentastruckoutfont.Thelow-

  orderbitis1iftheflagisset.Alltheotherbits

  arezero.

    dfWeight2bytesspecifyingtheweightofthecharactersinthe

  characterdefinitiondata,onascaleof1to1000.A

  dfWeightof400specifiesaregularweight.

    dfCharSet1bytespecifyingthecharactersetdefinedbythis

  font.

    dfPixWidth2bytes.Forvectorfonts,specifiesthewidthofthe

  gridonwhichthefontwasdigitized.Forrasterfonts,

  ifdfPixWidthisnonzero,itrepresentsthewidthfor

  allthecharactersinthebitmap;

ifitiszero,the

    fonthasvariablewidthcharacterswhosewidthsare

  specifiedinthedfCharTablearray.

    dfPixHeight2bytesspecifyingtheheightofthecharacterbitmap

  (rasterfonts),ortheheightofthegridonwhicha

  vectorfontwasdigitized.

    dfPitchAndFamily

  Specifiesthepitchandfontfamily.Thelowbitisset

  ifthefontisvariablepitch.Thehighfourbitsgive

  thefamilynameofthefont.Fontfamiliesdescribein

  ageneralwaythelookofafont.Theyareintendedfor

  specifyingfontswhentheexactfacenamedesiredis

  notavailable.Thefamiliesareasfollows:

    FamilyDescription

  -----------------

  FF_DONTCARE(0<

<

4)Don'

tcareordon'

tknow.

  FF_ROMAN(1<

4)Proportionallyspacedfonts

  withserifs.

  FF_SWISS(2<

  withoutserifs.

  FF_MODERN(3<

4)Fixed-pitchfonts.

  FF_SCRIPT(4<

4)

  FF_DECORATIVE(5<

    dfAvgWidth2bytesspecifyingthewidthofcharactersinthefont.

  Forfixed-pitchfonts,thisisthesameasdfPixWidth.

  Forvariable-pitchfonts,thisisthewidthofthe

  character

  et.

    dfLastChar1bytespecifyingthelastcharactercodedefinedby

  thisfont.Notethatallthecharacterswithcodes

  betweendfFirstCharanddfLastCharmustbepresentin

  thefontcharacterdefinitions.

    dfDefaultChar1bytespecifyingthecharactertosubstitute

  wheneverastringcontainsacharacteroutofthe

  range.ThecharacterisgivenrelativetodfFirstChar

  sothatdfDefaultCharistheactualvalueofthe

  character,lessdfFirstChar.ThedfDefaultCharshould

  indicateaspecialcharacterthatisnotaspace.

    dfBreakChar1bytespecifyingthecharacterthatwilldefineword

  breaks.Thischaracterdefineswordbreaksforword

  wrappingandwordspacingjustification.Thecharacter

  isgivenrelativetodfFirstCharsothatdfBreakCharis

  theactualvalueofthecharacter,lessthatof

  dfFirstChar.ThedfBreakCharisnormally(32-

  dfFirstChar),whichisanASCIIspace.

    dfWidthBytes2bytesspecifyingthenumberofbytesineachrowof

  thebitmap.Thisisalwayseven,sothattherowsstart

  onWORDboundaries.Forvectorfonts,thisfieldhasno

  meaning.

    dfDevice4bytesspecifyingtheoffsetinthefiletothestring

  givingthedevicename.Foragenericfont,thisvalue

  iszero.

    dfFace4bytesspecifyingtheoffsetinthefiletothe

  null-terminatedstringthatnamestheface.

    dfBitsPointer4bytesspecifyingtheabsolutemachineaddressof

  thebitmap.ThisissetbyGDIatloadtime.The

  dfBitsPointerisguaranteedtobeeven.

    dfBitsOffset4bytesspecifyingtheoffsetinthefiletothe

  beginningofthebitmapinformation.Ifthe04Hbitin

  thedfTypeisset,thendfBitsOffsetisanabsolute

  addressofthe

    bitmap(probablyinROM).

    Forrasterfonts,dfBitsOffsetpointstoasequenceof

  bytesthatmakeupthebitmapofthefont,whoseheight

  istheheightofthefont,andwhosewidthisthesum

  ofthewidthsofthecharactersinthefontroundedup

  tothenextWORDboundary.

    Forvectorfonts,itpointstoastringofbytesor

  words(dependingonthesizeofthegridonwhichthe

  fontwasdigitized)thatspecifythestrokesforeach

  characterofthefont.ThedfBitsOffsetfieldmustbe

  even.

    dfReserved1byte,notused.

    dfFlags4bytesspecifyingthebitsflags,whichareadditional

  flagsthatdefinetheformatoftheGlyphbitmap,as

  follows:

    DFF_FIXEDequ0001h;

fontisfixedpitch

  DFF_PROPORTIONALequ0002h;

fontisproportional

  ;

pitch

  DFF_ABCFIXEDequ0004h;

fontisanABCfixed

font

  DFF_ABCPROPORTIONALequ0008h;

fontisanABCpro-

portionalfont

  DFF_1COLORequ0010h;

fontisonecolor

  DFF_16COLORequ0020h;

fontis16color

  DFF_256COLORequ0040h;

fontis256color

  DFF_RGBCOLORequ0080h;

fontisRGBcolor

    dfAspace2bytesspecifyingtheglobalAspace,ifany.The

  dfAspaceisthedistancefromthecurrentpositionto

  theleftedgeofthebitmap.

    dfBspace2bytesspecifyingtheglobalBspace,ifany.The

  dfBspaceisthewidthofthecharacter.

    dfCspace2bytesspecifyingtheglobalCspace,if

    any.The

  dfCspaceisthedistancefromtherightedgeofthe

  bitmaptothenewcurrentposition.Theincrementofa

  characteristhesumofthethreespaces.Theseapply

  toallglyphsandisthecaseforDFF_ABCFIXED.

    dfColorPointer

  4bytesspecifyingtheoffsettothecolortablefor

  colorfonts,ifany.Theformatofthebitsissimilar

  toaDIB,butwithouttheheader.Thatis,the

  charactersarenotsplitupintodisjointbytes.

  Instead,theyareleftintact.Ifnocolortableis

  needed,thisentryisNULL.

  [NOTE:

Thisinformationisdifferentfromthatinthe

  hard-copyDeveloper'

sNotesandreflectsacorrection.]

    dfReserved116bytes,notused.

    dfCharTableForrasterfonts,theCharTableisanarrayofentries

  eachconsistingoftwo2-byteWORDsforWindowsand

  three2-byteWORDsforWindows.ThefirstWORDof

  eachentryisthecharacterwidth.ThesecondWORDof

  eachentryisthebyteoffsetfromthebeginningofthe

  FONTINFOstructuretothecharacterbitmap.ForWindows

  ,thesecondandthirdWORDsareusedforthe

  offset.

    Thereisoneextraentryattheendofthistablethat

  describesanabsolute-spacecharacter.Thisentry

  correspondstoacharacterthatisguaranteedtobe

  blank;

thischaracterisnotpartofthenormal

  characterset.

    Thenumberofentriesinthetableiscalculatedas

  ((dfLastChar-dfFirstChar)+2).Thisincludesa

  spare,thesentineloffsetmentionedinthefollowing

    paragraph.

    Forfixed-pitchvectorfonts,each2-byteentryinthis

  arrayspecifiestheoffsetfromthestartofthebitmap

  tothebeginningoft

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 经管营销

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1