矢量字库文件组织方式英文Word文件下载.docx
- 文档编号:18667588
- 上传时间:2022-12-31
- 格式:DOCX
- 页数:10
- 大小:18.53KB
矢量字库文件组织方式英文Word文件下载.docx
《矢量字库文件组织方式英文Word文件下载.docx》由会员分享,可在线阅读,更多相关《矢量字库文件组织方式英文Word文件下载.docx(10页珍藏版)》请在冰豆网上搜索。
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
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 矢量 字库 文件组织 方式 英文