mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibPDF: Add spec comments to CFF
This commit is contained in:
committed by
Andreas Kling
parent
9d31fc3ea3
commit
d451197d3d
@@ -19,6 +19,7 @@ NonnullRefPtr<Encoding> Encoding::create()
|
||||
PDFErrorOr<NonnullRefPtr<Encoding>> Encoding::from_object(Document* document, NonnullRefPtr<Object> const& obj)
|
||||
{
|
||||
if (obj->is<NameObject>()) {
|
||||
// PDF 1.7 spec, 5.5.5 "Character Encoding"
|
||||
auto name = obj->cast<NameObject>()->name();
|
||||
if (name == "StandardEncoding")
|
||||
return standard_encoding();
|
||||
|
||||
Reference in New Issue
Block a user