<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 14 Jul 2019 at 11:23, Lyberta &lt;<a href="mailto:lyberta@lyberta.net">lyberta@lyberta.net</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Corentin:<br>
&gt; A more interesting question is whether the API should expect a higher level<br>
&gt; text object rather than a sequence of code units. Afaik fonts operate on<br>
&gt; code point sequences<br>
Code point sequences or scalar value sequences?<br></blockquote><div><br></div><div>codepoint presumably - the intent is of course scalar value but it seems difficult to enforce</div><div>codepoint that are not scalar values would just be replaced by <span style="font-family:sans-serif;font-size:17.5px">�</span></div><div><br></div><div>I think the question whether well formness of text should be enforced by construction</div><div>needs to be answered more generally. I do not think i have an opinion either way,</div><div>I think providing APIs such that it is hard to construct a sequence of code point that is not a sequence of scalar values is sufficient.</div><div><span style="font-family:sans-serif;font-size:17.5px"><br></span></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
_______________________________________________<br>
SG16 Unicode mailing list<br>
<a href="mailto:Unicode@isocpp.open-std.org" target="_blank">Unicode@isocpp.open-std.org</a><br>
<a href="http://www.open-std.org/mailman/listinfo/unicode" rel="noreferrer" target="_blank">http://www.open-std.org/mailman/listinfo/unicode</a><br>
</blockquote></div></div>